[Plugin: Post Snippets] Default value still not inserted correctly
-
Not sure what changed in v1.9.3 to address this, but my attempt to include a default value is still being mishandled. I’m using the variables width and align, to feed a simple div box with classes assigned, and attempting to specify a default width. So my variables are width=250px,align and my snippet is:
<div class="snip align{align}" style="width:{width};"><div>Text</div></div>
But when I go to insert the snippet in a post, the value in the width field is 250p instead of 250px. Same thing happens if I supply a default alignment value — left works, but right gets truncated after four characters to become righ. I’ve cleared browser and WP caches, so something else is going wrong.
- The topic ‘[Plugin: Post Snippets] Default value still not inserted correctly’ is closed to new replies.