I've got this code on a single entry template - it grabs the entry_id of the entry each time the template is loaded.
{exp:stash:set scope="user" save="yes" name="recently-viewed" replace="yes" parse_tags="yes"}{exp:stash:get name name="recently-viewed" scope="user"}{entry_id}|{/exp:stash:set}
In a another template I'm trying to use exp:channel:entries like this:
{exp:channel:entries entry_id="{exp:stash:get name='recently-viewed'}"}{title}{/exp:channel:entries}
I'm doing something wrong because no entries are being output by exp:channel:entries. If I use {exp:stash:get name="recently-viewed"} outside exp:channel:entries, I'm getting the expected output, e.g. 2883|7365|3837.
I've tried all day to figure it out - can anyone pleaseee point me in the right direction?
Best wishes Lee