Exclude sub categories?
  • CoastalDataCoastalData August 2010
    Posts: 7
    Hello, I have a site that I wanted to use your plugin on, and on that site it has several categories, and some of those categories have sub-categories.... I wanted to display only the items from the parent category, but unfortunately, the plugin displays everything from both parent and child categories. I tried differentiating using tags, but as I'd posted in a seperate post, that's not working either.

    Any ideas?

    Thanks in advance,

    --J
  • FernandoFernando August 2010
    Posts: 306
    You should read the Documentation:

    [list][*]id - To display posts from a category using the category's id. Ex: [catlist id=24]. You can include several categories: Ex: [catlist id=17,24,32] or exclude a category with minus (-) Ex: [catlist id=17,-24][/*:m][/list:u]

    Exclude the sub-categories.
  • CoastalDataCoastalData August 2010
    Posts: 7
    Oh okay, well it's not a matter of not reading the documentation, it's just that it's non-intuitive to have to manually exclude the sub-categories, and let's face it, if the categories get changed around, then the hard-coding of this will be broken.

    If I ask for id=24, then why would it ever display something else?
  • coachdebracoachdebra August 2011
    Posts: 1
    Forgive my non-techie-ness - but as far as I can see, my categories don't have ID numbers.  When I look at the categories, they have names and slugs, but no id numbers.  So, how would I exclude those child categories?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with OpenID Sign In with Twitter Sign In with Google

Sign In Apply for Membership

In this Discussion

This Site is currently in maintenance mode.
Please check back here later.
→ Site Settings