is_category() is broken
-
I’ve spent hours trying to get this code to work and finally I have given up.
is_category()
without arguments just doesn’t work. I call it at the top ofcategory.php
as the docs say. Since this file is called on any click of a category url, the arguments are in the query. A work around is to callget_query_var('cat')
which returns a string containing the numerical ID of the category or nothing.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘is_category() is broken’ is closed to new replies.