0 weeks ago
When activated, this plugin causes the body_class template tag to output five additional classes. On single posts (is_single) : postname-[permalink slug] single-[category slug] parent-[parent category slug] (all parent and grandparent categories in a hierarchy of any depth) On pages (is_page) : pagename-[permalink slug] On category archives (is_archive and is_category) : parent-category-[parent category slug] (all parent and grandparent categories in a hierarchy of any depth) Custom Taxonomies As of version 1.3, the plugin now supports custom hierarchical taxonomies. The new body classes take the following form: On single posts (is_single) : single-[taxonomy]-[term slug] parent-[taxonomy]-[parent term slug] (all parent and grandparent terms in a hierarchy of any depth) On taxonomy archives (is_archive and is_tax) : parent-term-[parent term slug] (all parent and grandparent terms in a hierarchy of any depth) For single posts, the taxonomy name is included in the class name, because I felt it was important to be able to distinguish between taxonomies in cases where a post is assigned to more than one custom taxonomy, and when the same term might appear in two or more taxonomies. For example, suppose you had a real estate site with property listings in New York City, and you had two custom taxonomies defined: City and State. Then the classes would look like this: single-city-new-york single-state-new-york Multisite Support As of version 1.3, the plugin...
Sorry, pal! The plugin couldn’t pass all our tests. No hard feelings, right?
This section is not meant to be comprehensive.
Why don’t you compare the plugin side by
side with another plugin”