wordpress snippets last updated   : July 14, 2014
we now have 634 snippets
category posts

Add nofollow attribute to category specific links

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add the nofollow attribute to category specific links within the_content.

read more

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

Add custom field automatically when post or page is publish

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a custom field to a post or page when published. Don’t forget to update the FIELD_NAME and the CUSTOM VALUE.

read more

Enable google docs shortcode for .pdf documents

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will setup [pdf] shortcode to link PDF documents to Google docs online viewer.

read more

Post is older than

wordpress snippet

Adding this first block of code to your functions.php will allow you to check the age of a post to see if it is older than a set number of days. Great if you want to display some some information related to the post after set number of days or even stop displaying the post altogether.

read more

Add pinterest “Pin It” button to your wordpress blog

wordpress snippet

Adding a pinterest button to a wordress blog is simple! Place the first snippet in the functions.php of your wordpress theme. Once that is done add the next snippet into the location you wish to display the Pint It button within the single.php template file.

read more
jqsnipp.com | we just launched jquery snippets website