Title: [Plugin: Post Snippets] Default value still not inserted correctly
Last modified: August 20, 2016

---

# [Plugin: Post Snippets] Default value still not inserted correctly

 *  Resolved [Steve McConnell](https://wordpress.org/support/users/mcstevem/)
 * (@mcstevem)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/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.
 * [http://wordpress.org/extend/plugins/post-snippets/](http://wordpress.org/extend/plugins/post-snippets/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Johan Steen](https://wordpress.org/support/users/artstorm/)
 * (@artstorm)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-post-snippets-default-value-still-not-inserted-correctly/#post-2549029)
 * Thanks for the report. I tested the example you posted and I can confirm that
   I see the same behavior as you do. In the next version, coming in a few days,
   I’ll have this bug fixed.
 * Thanks again.
    Cheers, Johan
 *  [Johan Steen](https://wordpress.org/support/users/artstorm/)
 * (@artstorm)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-post-snippets-default-value-still-not-inserted-correctly/#post-2549070)
 * The plugin is now updated to v1.9.4 which should take care of this bug. If not
   let me know.
 * Cheers,
    Johan
 *  Thread Starter [Steve McConnell](https://wordpress.org/support/users/mcstevem/)
 * (@mcstevem)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-post-snippets-default-value-still-not-inserted-correctly/#post-2549071)
 * v1.9.4 solved the truncation problem for me — thanks for the speedy response.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Post Snippets] Default value still not inserted correctly’ is
closed to new replies.

 * ![](https://ps.w.org/post-snippets/assets/icon-128x128.gif?rev=2545587)
 * [Post Snippets - Custom WordPress Code Snippets Customizer](https://wordpress.org/plugins/post-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/post-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-snippets/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Steve McConnell](https://wordpress.org/support/users/mcstevem/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-post-snippets-default-value-still-not-inserted-correctly/#post-2549071)
 * Status: resolved