• Hi,

    In my template I have is_archive(){ [template code] }. Now its the problem, I dont want to show all posts. I want to hide posts from a category. So how to edit the code with is_archive()?

    is_archive( !in_category(‘slug’) ) <- is that ok?

    thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘exclude a category from is_archive()?’ is closed to new replies.