Please see the right side panel on my site: http://lacrossescotland.com/
There is a Recent News section, and the code for this is:
<?php if (in_category(‘General’) && is_home() ) stop; ?>
<?php get_archives(‘postbypost’, 3); ?>
I would like to know how to exclude all categories from the Recent News, except for ‘General’.
I’m sure this is simple, but I’ve searched everywhere and can’t find it.
Any help would be greatly appreciated.
- The topic ‘Excluding all categories but one, in ‘Recent News’ in side panel. What code?’ is closed to new replies.