updated   : May 15, 2012
we now have 588 snippets
By : , on December 09, 2011 9:00 am

Strip HTML tags from the_terms

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will strip html from the_terms.

read more
By : , on November 07, 2011 9:00 am

Add a custom class to the_tags

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a custom class to links output by the_tags template tag.

read more
By : , on September 27, 2011 9:00 am

Display specific content if post has_tag or specific tag

wordpress snippet

Adding this snippet within the loop of your wordpress template will let you display specific content if a post has tags or not. Also note that has_tag(‘tag_name’) suports, tag name, term_id or slug and an array of tag names, term ids and slugs. Also a big thanks to Jeremy for submitting the following.

read more
By : , on March 12, 2011 9:00 am

Adding page numbers to category, tag and post titles

wordpress snippet

Add this snippet to the title tag and meta descriptions to avoid duplicate content. Place within the header.php and Page 2 or above will be added to your wordpress pages.

read more
By : , on January 18, 2011 2:00 pm

Style the tag cloud

wordpress snippet

Adding this PHP code snippet to the functions.php of your wordpress theme will allow you to define style details like font-size small to large, and format of the tag cloud.

read more
By : , on December 17, 2010 4:00 pm

Total number of tags

wordpress snippet

Adding this code snippet to your wordpress theme will display the total number of tags.

read more
By : , on December 14, 2010 4:00 pm

Get tags outside loop

wordpress snippet

Adding this PHP code to your wordpress theme will display a list of tags outside the loop.

read more
By : , on November 29, 2010 10:00 am

Show most used tags in list

wordpress snippet

Add the first block of code to your wordpress functions.php then add the second block of code to your wordpress theme. This will display a list of the top 10 tags by usage.

read more