Viewing 1 replies (of 1 total)
  • The reason may be that you published the category 24 posts also in other categories.

    <?php if ( !(in_category('24')) ) { ?> means that no posts in category 24 will ever be posted, not even in its own category page ( if it doesn’t have a template of its own of course ).

    Normally the exclusion looks like this:
    <?php if ( !(in_category('24')) || !is_home() ) { ?>, which means the post *is* displayed if it is not on the main page.

    If a post is published in more than one category it will show up regardless of the above statement.

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude a catagory from the loop..’ is closed to new replies.