Hi, I am trying to filter entries based on an entries parent category id.
Here is my code:
{exp:weblog:entries weblog="business_listings" status="Featured" orderby="random" category="not 15"}
Here are my categories:
Restaurants - id: 15
->Italian - id: 22 (child of restaurants)
->American - id: 23 (child of restaurants)
etc..
so I don’t see any entries with category - id:15 but I do see entries with category id: 22
How can I do this without hard-coding the child ids into the category list?
I know the parent category (id = 15) will never change but child categories will be added on the fly and I don’t want to have to go in and change the code every time a new child category is added.
So something like this is what I am looking for:
parent_category=“not 15”
Thanks