Display item if in Category A 'AND' Category B
-
I’ve got multiple menus that I want to display only on certain archive pages. In one situation, I want the menu to display ONLY if the posts are in 2 different categories.
So I guess the code could look something like the following…
<?php if (in_category('acoustic') || in_category('artists')) { ?>
This doesn’t work but I wondered if its possible?
So if a post is in ‘artists’ AND ‘acoustic’ then display menu…
If it’s only in one of those then don’t display menu…Any thoughts appreciated!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Display item if in Category A 'AND' Category B’ is closed to new replies.