I have tried to use Cat2 addon to retrieve category ID based on a category group. Later I want to use stashed category ID to retrieve entries form a channel based on a selected category. Code looks like:
{exp:stash:set name="catid" parse_tags="yes" parse_depth="3"}
{exp:cat2:id category_url_title="{segment_2}" category_group="5" parse="inward"}
{category_id}
{/exp:cat2:id}
{/exp:stash:set}
CatID#: {exp:stash:get name='catid'}
{exp:channel:entries channel="collection" category="{exp:stash:get name='catid'}" url_title="{segment_3}" status="open"}
{title}
{collection_description}
{/exp:channel:entries}
It displays proper CatID# but I'm not getting any entries. When I "hardcode" that CatID# instead of {exp:stash:get name='catid'}
I'm able to retrieve related entries.
Any clue what is going on there?
Thanks