Stash 2.6.7 EE 2.10.1
I've been stumped on this one for over 8 hours and feel like I'm overlooking something so simple. I've reviewed the Low parse order guide but still can't get it to work. I've tried different routes with using get_list, setting exp:stash:set to snippet type, etc.
{!-- LIMIT & GRAB ONLY FIRST CATEGORY NAME OF ENTRY (Entry can have multiple categories) --}
{exp:channel:entries channel="resources" dynamic="no" limit="6" disable="member_data|pagination"}
{exp:stash:set name="entry_{entry_id}_category" trim="yes" parse_tags="yes" parse_depth="2"}
{exp:gwcode_categories entry_id="{entry_id}" depth="1" limit="1" style="linear"}
{cat_url_title}
{/exp:gwcode_categories}
{/exp:stash:set}
{/exp:channel:entries}
{!-- DROP IN STASH VARIABLE FOR FLEXIBLE TAG PAIR --}
{exp:stash:parse process="end"}
{exp:channel:entries channel="resources" dynamic="no" limit="6" disable="member_data|pagination" parse="inward"}
{{stash:entry_{entry_id}_category}_resource_images}
<div class="thumb">
<a href="#"><img src="{image:url:small}" alt=""></a>
</div>
{/{stash:entry_{entry_id}_category}_resource_images}
{/exp:channel:entries}
{/exp:stash:parse}
--------
{!-- WORKS IF I SIMPLY DROP IN SEGMENT_2 (which is "print" category) --}
{exp:stash:parse process="end"}
{exp:channel:entries channel="resources" dynamic="no" limit="6" disable="member_data|pagination" parse="inward"}
{{segment_2}_resource_images}
<div class="thumb">
<a href="#"><img src="{image:url:small}" alt=""></a>
</div>
{/{segment_2}_resource_images}
{/exp:channel:entries}
{/exp:stash:parse}
As you see in the third block above, replacing the Stash variable with segment_2 which translates to "print" works and pulls in the image. So it's definitely a parse order issue. How can I get Stash to parse '{stash:entry_{entry_id}_category}' first before parsing the outer tag pair?
Thanks!