More efficient way to display widgets on posts in certain categories?
-
I want to display a certain widget only on posts that are in certain categories. What I’m wondering is if there’s a more efficient way of doing this:
!is_home() && !is_category() && !is_author() && in_category( array('4','5','12','13' ))
I tried
is_category( array('4','5','12','13' ))
But that didn’t give me the output I was looking for. Since there could eventually be hundreds of pages, I didn’t want to use is_page(), either.
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘More efficient way to display widgets on posts in certain categories?’ is closed to new replies.