Support » Everything else WordPress » Excluding all categories but one, in ‘Recent News’ in side panel. What code?

  • Hi,

    Please see the right side panel on my site: http://lacrossescotland.com/

    There is a Recent News section, and the code for this is:

    <h2>Recent News:</h2>

      <?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.
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Excluding all categories but one, in ‘Recent News’ in side panel. What code?’ is closed to new replies.