wordpress snippets last updated   : August 18, 2014
we now have 638 snippets

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

Create most recent posts dashboard widget

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will create a new dashboard widget showing the five most recent posts.

read more

Check for post type within loop using get_post_type

wordpress snippet

Adding this snippet within the loop of your wordpress theme will let you conditionally check for a specific post type. Just change the post type ‘products’ or ‘people’ to the post type you would like.

read more

Update: Create custom post status messages in admin

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you create custom post status messages.

read more

highlight post_states within admin posts and pages

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will highlight the posts_states within the admin post and page sections.

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