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

Exclude pages from admin edit pages list

wordpress snippet

This is a great little snippet that will exclude pages based on the the ID from the admin pages list. Just add this snippet to the functions.php of your wordpress theme and update the array with the page ID’s you wish to hide. Please note this does not stop a post from being editable this snippet only hides the page from view.

read more

Exclude pages from admin pages list by ID

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you remove pages from the admin pages list. Just update the list of page IDs within the array.

read more

Display wp_list_pages with dynamicly created exclude list

wordpress snippet

Adding the first snippet to the functions.php of your wordpress theme will use wp_list_pages but filter out any pages that contain no content creating an excluded_pages array. Then add the second snippet into your wordpress theme in the location you wish to display the pages.

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

Exclude categories

wordpress snippet

Adding this PHP code to your wordpress functions.php file will allow you to exclude categories from your RSS feeds. Make sure to use a minus - before the category id.

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