I’ve the same problem after update to WordPress 4.2.3.
Have you any suggestion to fix it?
thanks
I’m glad to see that I’m not the only person with this issue, which suggests that the problem is related to the plugin itself.
Question is, Is there a fix and is anybody working to resolve the problem.
I chose this plugin because it was the one that was most recently updated – just hope it’s actively maintained.
Hello, at the end I have worked around the problem.
I’ve modified my short code and I print all the input type form and not only the value. Clearly is not a solution but it work.
see you
Great idea ghimar. Thanks – hopefully that’ll work for my use-case 🙂
This problem still exists, with the latest plugin version (2.0.9) and wordpress version (4.4.2).
It seems like, every php snippet inside a html attribute will be ignored.
For example:
<div src=”[php snippet=1]“></div>
I also am experiencing this issue in 4.4.2.
Eventually a shortcode will render all my HTML but I’m using one to inject a value into an input field while ‘proof of concepting’ something.
Anyway, what I’ve done by way of a quick fix is to change this:
<input type="text" name="whatever" value="[render_object_value property="name"]" />
To this:
<input type="text" name="whatever" value="" />
<script>jQuery('input[name="whatever"]').val('[render_object_value property="name"]');</script>
jQuery is of course added in my header. This is hardly a job for jQuery though, it just makes for slightly less code. If your jQuery is added in your footer and you don’t want the whole ‘run on document load’ rigmarole (which I wouldn’t doing this – more code & more delay), I’d go with:
<input type="text" name="whatever" value="" />
<script>document.querySelector('input[name="whatever"]').setAttribute('value', '[render_object_value property="name"]');</script>
Caveat: I have not checked the validity of the POJS version there but you get the idea.
Hi givemeahand,
The issue lies in the way WordPress parses shortcodes.
It can detect when your snippet is being used inside an attribute and escapes it (probably to prevent user’s running arbitrary shortcodes via poorly coded forms.
As such you should use your snippet to output the full value parameter (value=”xyz”), or the entire input itself.
I hope this helps