Hi there. I have my categories set up like this:
Publishers
- Pub1
- Pub2
- Pub3
And so on, where Pub# are subcategories of the Publishers category. Each entry is assigned to a single Pub# and on an individual entry page I’m to get that publisher displayed.
I’ve tried:
{exp:query sql="SELECT cat_id as category_id, cat_name AS category_name FROM exp_categories WHERE parent_id = '2'"}
{category_name}
{/exp:query}from the Wiki but that actually displays all subcats. The Query module isn’t my strongest area, so if anyone can help I’d appreciate it!