Hi-
I’m trying to build a conditional that reacts based on whether an entry is a member of a certain category.
If I code the following:
{categories}
{category_id}
{/categories}I get “1 4 5” (indicating the categories to which this entry belongs.)
However, if I code this:
{categories}
{if category_id=="4"}
...do stuff…
{/if}
{/categories}the {categories} tags don’t parse. They display in the page, and none of my conditional gets executed.
Can someone please explain the proper syntax for building a conditional which uses a category_id within {exp:channel:entries} tags?
Thanks