0

I want to display an entry's category, but only from a specific category group.

{exp:channel:entries channel="paintings" limit="10"}
{title}
{categories group_id="42"}{category_name}{/categories}
{/exp:channel:entries}

If I just use: {categories}{category_name}{/categories} I get all categories but I only want categories display if they are in group 42. If they have nothing in group 42 I want nothing to display

0

1 Answer 1

2

{categories show_group="42"}{category_name}{/categories}

1
  • Based on the docs, that SHOULD output only the categories within the group with ID 42 that the current entry is assigned to, as you described. Commented Jun 1, 2013 at 18:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.