• I can’t get the shortcode to exclude a category. I’ve tried:

    [catlist name=apparel,-resources date=yes?author=yes posts_morelink="Read more" excerpt=full template=default numberposts=15 pagination=yes]

    and

    [catlist id=97-98 date=yes?author=yes posts_morelink="Read more" excerpt=full template=default numberposts=15 pagination=yes]

    and

    [catlist id=97,-98 date=yes?author=yes posts_morelink="Read more" excerpt=full template=default numberposts=15 pagination=yes]

    but the results are the same: posts with “apparel” and “resources” categories are still showing up. I want to exclude any posts in the “resources” category. Is this possible?

    https://www.ads-software.com/plugins/list-category-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bentenz

    (@bentenz)

    OK, I’ve narrowed down the problem to the template. I’ve got a barely modified version of the default template (switching order of elements). Does:

    $this->catlist->get_categories_posts() as $single

    Take into account the exclusions?

    I’m having the same problem. The problem however also happens with the default template.
    bentenz : Did you ever figure out how to solve this ?
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude category not working’ is closed to new replies.