updated   : May 15, 2012
we now have 588 snippets
category page
By : , on May 15, 2012 9:06 am

Shortcode to display users IP address in posts & pages

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you use a shortcode to display the users IP address in your posts or pages.

read more
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 23, 2011 9:00 am

Display attachment thumbnail with image metadata

wordpress snippet

Adding this snippet within the loop of your index.php template file will display a list of all post attachments with the following metadata (Credit, Camera, Focal Length, Aperture, ISO, Shutter Speed, Time Stamp, Copyright).

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 12, 2011 9:00 am

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
By : , on December 08, 2011 9:00 am

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
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