wordpress snippets last updated   : January 29, 2015
we now have 646 snippets
category page

Display most recently updated posts and pages

wordpress snippet

Adding this snippet to your wordpress theme will display a list of the most recently updated posts and pages.

read more

Custom column with currently active page template

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a column to your admin pages showing which wordpress page template currently in use.

read more

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