ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Filter out entries that contain a category

May 11, 2013 1:28pm

Subscribe [2]
  • #1 / May 11, 2013 1:28pm

    manodrum

    7 posts

    Hi,

    I have entries that have multiple categories assigned to them from different category groups.

    I have a channel entries tag, and I don’t want any entries returned if they contain a specific category id.  However, they aren’t being filtered out (I’m assuming because they are also assigned to other categories).

    Is there a way or syntax to say as long as an entry is has at least this category id, don’t return it?

    Thanks!
    Stephen

    Here is my current tag:

    {exp:channel:entries channel="arearugs" category="not 469" paginate="both" dynamic="off" orderby="pieces" sort="desc" limit="100" disable="member_data"}
  • #2 / May 12, 2013 3:17am

    Bhashkar Yadav

    727 posts

    Instead of using category as parameter, you should use category_group parameter like:

    {exp:channel:entries channel="arearugs" category_group="not 1|2" paginate="both" dynamic="off" orderby="pieces" sort="desc" limit="100" disable="member_data"}

    I hope, it would help you.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases