0

I have used exp stash to get entry ids. But the code is not working inside exp:channel My code:

{exp:stash:set name="recently_viewed_ids" output="no" parse_tags="yes" trim="yes" } 
  {exp:channel:entries channel="blog"  sort="desc"   disable="pagination" entry_id="not 26|25" }
    {entry_id}|
  {/exp:channel:entries}
{/exp:stash:set} 

Result:

{exp:stash:get name='recently_viewed_ids'}{/exp:stash:get} ---- working fine

{exp:channel:entries channel="blog" sort="desc" entry_id="not {exp:stash:get name='recently_viewed_ids'}{/exp:stash:get}" }{entry_id}{/exp:channel:entries}
--- not working

Can anyone please help?

5

Browse other questions tagged or ask your own question.