Since upgrading to EE 2.9.0 and Stash 2.5.6 I am having problems with stash snippets.

I am getting results such as %Y-%m-%dT%H:%i:%s%Q

{exp:stash:set_value name="my_var" type="snippet" value="oof"}

{exp:stash:get name="my_var" type="snippet"}

works fine and prints oof, but

{my_var} prints {my_var}

I have been using the second method extensively through my site in conditionals or simply to display elements.


1 Answer 1


Stash variables set to type="snippet" can be accessed in the same way as in previous versions of EE. To demonstrate:

{exp:stash:set name="my_snippet" type="snippet"}My snippet{/exp:stash:set}

The template inc/snippet_embed looks like this:

{if my_snippet} My snippet has a value!{/if}


My snippet 
My snippet has a value!

Conditionals in EE 2.9 have of course changed which does have some implications when evaluating Stash snippet variables, which you can read about here:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.