david_navigator
Forum Replies Created
-
Shortcode
[wbcr_php_snippet id=”15311″] = Hello World
This works correctly in a regular text block e.g
Design side:
<p>[wbcr_php_snippet id=”15311″]</p>
Generated HTML client side:
<p>Hello World</p>
but if I add the shortcode to an INPUT tag, it doesn’t expand in a similar way
Design Side:
<input name=”custom webpage” type=”hidden” value=[wbcr_php_snippet id=”15311″] />
Expected Generated HTML client side:
<input name=”custom webpage” type=”hidden” value=Hello World />
Actual Generated HTML client side:
<input name=”custom webpage” type=”hidden” value=[wbcr_php_snippet id=”15311″] />
For anyone else finding this issue in the future – the problem was due to the wordpress editor converting some of the quotes when I copied the code from the old tags to the new snippets. @webcraftic kindly identified those problems and the code is now working as expected ??
What time zone are you in and what is a good time to Skype ?
Wondered if you’d had any chance to see what’s going wrong ?
I’ve updated to your latest version, but this code still doesn’t run as a snippet.regards
David
Many thanks. Sent
If you let me have an email address, I can send you the real credentials
$user="php_XXXXXXX"; $password="XXXXXXX"; $database="mantis_XXXXXXX"; mysql_connect("mysql.XXXXXXX.com",$user,$password);