I'm on a single product entry page. The URL does not specify the category. In fact, the entry has 3 category groups associated with it. I want to display the first category assigned from each of the category groups.
Here's the code I have so far:
{exp:channel:entries channel="products" limit="1" }
<div id="prodinfo">
<h1>{title}</h1>
{exp:channel:categories category_group="4" note="vehicle type"}
{category_name}
{/exp:channel:categories}
</div> <!-- END #prodinfo -->
{/exp:channel:entries}
This is displaying all the categories in the group. I've also tried using the {if active} conditional variable, but as it relies on the URI, it's not working for me.
Thanks for your help.