updated   : May 15, 2012
we now have 588 snippets
By : , on May 01, 2012 9:00 am

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
By : , on February 27, 2012 1:45 pm

Return ID if parent page exists

wordpress snippet

This is a great little snippet that will let you return the ID of the parent page if the page has a parent. Just add this snippet to the functions.php of your wordpress theme and your ready to get the parent page ID.

read more
By : , on December 19, 2011 9:00 am

Add post ID to posts, pages admin columns

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add ID to post and pages admin columns.

read more
By : , on December 05, 2011 9:00 am

Updated: Add featured thumbnail to admin post / page columns

wordpress snippet

This is an updated version of the posts thumbnail column snippet. Adding this snippet to the functions.php of your wordpress theme will add a new thumbnail column to your posts and pages admin columns.

read more
By : , on November 03, 2011 9:00 am

Dynamically create and attach sidebars to pages or posts

wordpress snippet

This is a bit large for the snippets I normally post however very useful. This snippet will let you easily create new sidebars by simply adding the name to an array. You will also be able to define the dynamically created sidebar a page loads by selecting from the custom sidebar selection metabox.

read more
By : , on October 27, 2011 9:00 am

Display random messages of encouragement, posts

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will allow you to display random messages of encouragement to an author when they create a new post. Messages are displayed in the title field and the content field of new posts and don’t forget to update the array of messages to suite your needs.

read more
By : , on September 20, 2011 9:00 am

Redirect user to new post when published using wp_redirect

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will redirect a user to the new post or page after it is published.

read more
By : , on September 13, 2011 9:00 am

Redirect commenter to thank you post or page

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will redirect a commenter to any post or page you specify. Consider redirecting a commenter to a thank you page when they comment on a post.

read more