[Plugin: Post Snippets] Problem with defaults
-
First up, awesome plugin!
Only problem is I’m having problems with the insertion of defaults. The variables work fine when they’re defined in the shortcode, however when they aren’t defined the defaults aren’t passed through. I’m using version 2.0 of the plugin with the latest version of wordpress and the weaver II pro (theme).
Here’s an example:
Snippet name (shortcode): fbcomments
variables: url=https://www.xxx.com
snippet: <div class=”fb-comments” data-href=”{url}” data-num-posts=”10″ data-width=”470″ data-colorscheme=”dark”></div>When I enter [fbcomments], I still data-href=”{url}” in the source code.
When I enter [fbcomments url=”https://www.xxx.com”%5D things work fine.
I’ve tried it with more basic default variables too, eg title=blah and same problem.
Any thoughts on how I could fix this would be great!
- The topic ‘[Plugin: Post Snippets] Problem with defaults’ is closed to new replies.