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

Add TinyMCE editor to post/page title input field

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add the TinyMCE editor to the title input field of your wordpress posts and pages.

read more

Embed Google books in your posts using shortcode

wordpress snippet

Adding the first snippet to the functions.php of your wordpress theme will let you use shortcode to embed google books. Just because it took me a while to find the ISBN number to embed a book. Look at the top right of the page when viewing a book for “About This Book”. Click on about this book and at the very bottom of the page you will find the ISBN number.

read more

Display total published words in “Right Now” admin dashboard

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will display the total number of published words from posts and pages. This is displayed at the bottom of the “Right Now” box in your wordpress admin dashboard.

read more

Add parent page slug to body_class

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add the parent page slug to the body_class. Displayed like this <body class=”parent-PAGESLUG”> this can be a great way if you need to style elements on specific pages.

read more

Unlimited number of child pages using wp_list_pages

wordpress snippet

Adding this snippet to the sidebar.php of your wordpress theme will use wp_list_pages to display all child pages regardless of depth. This is something I have not found online and needed for a current theme I’m working on, enjoy!

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