Exclude pages from admin pages list by ID
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 moreReturn ID if parent page exists
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 moreAdd post ID to posts, pages admin columns
Adding this snippet to the functions.php of your wordpress theme will add ID to post and pages admin columns.
read morethis months featured snippets
Updated: Add featured thumbnail to admin post / page columns
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 moreDynamically create and attach sidebars to pages or posts
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 moreDisplay random messages of encouragement, posts
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 moreRedirect user to new post when published using wp_redirect
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 moreRedirect commenter to thank you post or page
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











