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

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

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

Attach images with simple thumbnail selection metabox

wordpress snippet

A little snippet I wrote recently to easily attach images to posts with a simple thumbnail selection metabox. Add the first snippet to the functions.php of your wordress theme. Place the second snippet within the loop of your wordpress theme to display the images in your posts or pages.

read more

Disable content editor for specific page template

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will disable the content editor when a page is using a specific template. Don’t forget to change the name of the template file on line 08 this sample I have submit.php but can be changed to anything.

read more

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

Add TinyMCE font select to 3rd row, always visible

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will enable and place the font selection dropdown menu within the 3rd row. If in the 3rd row items will always be visible without selecting the kitchen sink button.

read more