wordpress snippets last updated   : October 6, 2014
we now have 641 snippets
category category

Add category selection to custom post type

wordpress snippet

Adding this wordpress snippet to the functions.php will enable category selection within the editor for your custom post type. Don’t forget to change the CUSTOM_POST_TYPE to the name of the custom post type you created.

read more

Adding page numbers to category, tag and post titles

wordpress snippet

Add this snippet to the title tag and meta descriptions to avoid duplicate content. Place within the header.php and Page 2 or above will be added to your wordpress pages.

read more

List recent posts from a single category

wordpress snippet

Adding this snippet to your wordpress theme will display the five most recent posts from a single category. Be sure to change the category name CATNAME to the category you wish to display.

read more

List all Subcategories

wordpress snippet

Adding this PHP code to your wordpress theme will display a list of only subcategories

read more

Exclude default category

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will exclude the default category from your blog.

read more

Unregister default widgets

wordpress snippet

Adding this to the functions.php of your wordpress theme will unregister the default wordpress widgets. Pick and choose what widgets you wish to unregister or all of them if you wish.

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