Display one category in a mini-loop
-
I am currently building a site for a church and I want on the main page to have a feed for services and a feed for events and display those both in separate feeds on the same page.
I know I can exclude categories from the loop and display them that way with something like this:
<?php if (in_category('1')) continue; ?>
But if the site grows to include more categories, it requires me updating that to cover the numbers of all categories it should exclude.
Is there a way to have it only display one instead of exclude one?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Display one category in a mini-loop’ is closed to new replies.