I’m hitting a brick wall with categories. Seems like this should be easy.
To simplify, I have a parent category with two child categories. Say the parent is 1, the children 2 and 3. I want to display entries in category 2, but not those in category 3. The purpose is to display chosen categories within a monthly calendar.
I have this code:
{exp:channel:categories channel="Calendar" category_group="1" show="1" style="linear"}
<div class="cal_{category_id}"><a href="http://{title_permalink=.">{title}</a></div>
{/exp:channel:categories}As shown (show=“1”) I get items from both categories, as I’d expect.
I would THINK that the show=“2” would only display entries from category 2. But it does not; it displays nothing. If I change to show=“3” it similarly displays nothing.
If I use shown=1|2, I get all entries TWICE - those in category 2 and those in category 3.
How can I get ONLY those entries in child category 2?
Using current production version, 2.1.3 build 20101220.