is_category problem
-
I have a code like this in header.php to display a different menu on archive page of each category:
if ( is_category(1) ) { [...] } else if ( is_category(2) ) { [...] } else { [...] }But in the home page or in the tag archive page, it shows the menu of the first post category, instead of executing the else code.
The topic ‘is_category problem’ is closed to new replies.