WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
Trying to exclude a category from list (5 posts)

  1. nik_patch
    Member
    Posted 1 year ago #

    Hi, I love this plugin and it works really well - but on one of my pages I'm trying exclude those posts with the slug 'archived-info' and have tried using both the minus sign and the exclude option suggested but with no luck. Can you let me know what I'm doing wrong?

    Many thanks!

    '[catlist name=latest-news, -archived-info posts_morelink="Read more..."]'

    http://wordpress.org/extend/plugins/list-category-posts/

  2. Frank
    Member
    Posted 1 year ago #

    I would try to eliminate the whitespace after the comma. Otherwise it's not clear, that it belongs to the name attribute. If that does not work, try using "-7" or sth. like that instead, what should be the caterory's internal number.

    EDIT: NO, sorry. Seems that the plugin does not support excluding categories. At least it's not possible via the name attribute.

  3. Frank
    Member
    Posted 1 year ago #

    The Other notes page says:
    exclude a category with the minus sign (-): [catlist id=11,-32,16].

    Yes. That's the way it works. Use the id attribute, e.g.: [catlist id=-5] where "-5" has to be your internal category number.

  4. nik_patch
    Member
    Posted 1 year ago #

    ok, thanks very much! That works! :)

  5. robertallen
    Member
    Posted 1 year ago #

    Does this work in reverse? If you want to display ALL the latest posts in your blog no matter what the category is, and then you just X out the category you don't want?

    [catlist id=-5]

    ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic