• Hey there. I can’t seem to find the answer to this, but I’m guessing it’s probably easy…

    I have two categories, News (category 3) and Blog (category 4). I’m using this code to exclude category 4 posts from appearing on my index page:

    <?php if ((in_category(4)) && is_home() ) continue; ?>

    Works great. However, there are some posts which I have marked as BOTH category 3 and 4. I would like these to appear on the index page, without making ALL category 4 posts appear. How can this be done?

    Thanks for the help!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to include posts marked as two categories using in_category?’ is closed to new replies.