wordpress snippets last updated   : April 14, 2014
we now have 630 snippets

Display all posts within a dropdown menu

wordpress snippet

Adding this snippet to your wordpress theme will display a list of all your posts within a dropdown menu. You can adjust the number of posts displayed by changing the -1 value within the $args array.

read more

Display content based on user capability

wordpress snippet

Adding the first snippet to the functions.php of your wordpress will let you display content base on user capability. Use the second snippet in your posts with the corresponding capability. View the codex for more information on capabilities Great little snippet By Justin Tadlock.

read more

Display related posts by posts current author

wordpress snippet

Adding the first snippet to the functions.php of your wordpress theme will let you display 5 related posts by the current author. Add the second snippet into the single.php of your wordpress theme in the location you wish to display the related posts. This is a great little snippet from people over at wpbeginner.com.

read more

Display most recently updated posts and pages

wordpress snippet

Adding this snippet to your wordpress theme will display a list of the most recently updated posts and pages.

read more

Display last months most commented posts as thumbnail

wordpress snippet

This snippet will display last months most commented posts as thumbnails. Add the first snippet to the functions.php of your wordpress theme then add the second snippet where you wish to display the thumbnails. I currently use this snippet on http://wpsnipp.com after the third post if you wanted to see it in action.

read more

Order categories by most recently updated

wordpress snippet

Adding this snippet to your wordpress theme will display a list of categories ordered by the most recently updated category first.

read more
jqsnipp.com | we just launched jquery snippets website