I'm trying to create a stash variable of a pipe delimited entry_id list using the following:
{exp:channel:entries channel="related_entries" limit="1" disable="categories|member_data|pagination|trackbacks" entry_id="2249"}
{exp:stash:set name="featured_ids" parse_tags="yes"}
{entry_relationships backspace="1" parse="inward"}{entry_id}|{/entry_relationships}
{/exp:stash:set}
{/exp:channel:entries}
I've enabled template debugging and can see that the variable is being set by stash:
Stash: SET featured_ids to value 6147|8116|6270|3031|3019|463|6380
..but when I try and retrieve the variable using
{exp:stash:get name="featured_ids"}
I get
Stash: RETRIEVED featured_ids with value
and looking at the order of the output, guess what? It is LATER in the parse order than setting the variable in the first place, which explains why it doesn't output anything.
Does anyone know how I can get around this?
EDIT: I've added process="end" to my get tag and now in the template debugging I'm seeing the following:
Stash: RETRIEVED featured_ids with value 6147|8116|6270|3031|3019|463|6380
but when I look at the output on the actual page, I'm seeing:
{b0faccac1d7de314625221c0189105071802790178}
Anyone any ideas?
Cheers
Jim