wordpress snippets last updated   : April 14, 2014
we now have 629 snippets
category tags

Remove title attribute from wp_tag_cloud

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will remove the title=”” attribute from the anchor tags when using wp_tag_cloud.

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

Truncate description within post tags admin panel

wordpress snippet

I had a few emails about truncating post tag descriptions similar to truncating category description snippet, here it is. Adding this snippet to the functions.php of your wordpress theme will truncate the description located within the tags admin panel. Change the number 150 on line 09 to adjust the number of characters for the post tags description.

read more

Automatically categorize and tag posts when saved

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you automatically categorize and tag posts when you save them. Don’t forget to add a new tag or a new category

read more

Add tag selection to custom post type

wordpress snippet

Adding this wordpress snippet to the functions.php will enable tag selection within the editor for that custom post type. Don’t forget to change the CUSTOM_POST_TYPE to the name of the custom post type you created.

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