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

Add post category to body_class on single posts

wordpress snippet

This little snippet will take all the categories assigned to a post and add them to the body_class “sgl-cat-{category-name}”.

read more

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

Shortcode with micro formatted loop, meta, category, pagination

wordpress snippet

Here’s a neat little wordpress shortcode that allows posting of individual blog posts based on ID, latest number of blogposts from a certain category or all categories, optional pagination, optional excerpt or full content showing and optional meta.

read more

Remove parentheses from category counts

wordpress snippet

Adding this snippet to your wordpress template will remove the parentheses surrounding the category count when using wp_list_categories.

read more

Change “select category” name within category dropdown widget

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you change the name displayed within the select menu category dropdown widget.

read more

Exclude categories from RSS feed with functions.php

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will exclude specified categories from RSS feed.

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