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

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

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

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

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

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

Total number of tags

wordpress snippet

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

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