wordpress snippets last updated   : October 6, 2014
we now have 641 snippets
category tags

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

Unregister default widgets

wordpress snippet

Adding this to the functions.php of your wordpress theme will unregister the default wordpress widgets. Pick and choose what widgets you wish to unregister or all of them if you wish.

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

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

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