We've found 7 snippets for you in Categories
Force Sub Categories To Use Parent Category Templates

Force Sub Categories To Use Parent Category Templates

You can use this WordPress code snippet to force WordPress to use custom pare...
Add Post Category Slug to Body Class in WordPress

Add Post Category Slug to Body Class in WordPress

Sometimes you may need to style a particular post differently, based on the c...
Add Nofollow Attribute to All Links in a Specific Category

Add Nofollow Attribute to All Links in a Specific Category

This snippet will add nofollow attribute to affiliate or marketing links, pre...
Get Category Slug of Current Category in WordPress

Get Category Slug of Current Category in WordPress

In this article we will show a simple way to get category slug of current cat...
Exclude Category Posts From RSS Feed

Exclude Category Posts From RSS Feed

WordPress offers a pre_get_posts hook that we can use to exclude category pos...
Exclude Category Posts From WordPress Blog

Exclude Category Posts From WordPress Blog

Sometimes it's important for you to exclude category posts from blog homepage...
Change Excerpt Length For Different Categories

Change Excerpt Length For Different Categories

Post excerpt has a default length of 55 words but sometimes you want to chang...