Quote:
Originally Posted by Mad182
I don't know much about wordpress, but common sense leads me to believe that "&& !is_single()" interfere with what you're trying to achieve.
|
The thing is, that example is derived directly from WordPress's own documentation.
To clarify, the is_single tag calls a template that displays single posts, is_category calls the template that displays category pages and in_category refers to a specific category.
So, the argument should first look to see if you're on a category page, then look to see if you're viewing a single post, then apply a class of "current" to the appropriate category.
|