Minor brokenness/error with shortcode embedding
-
Hi,
I just bumped into a error when embedding a Meteor Slides slideshow via a shortcode in a Custom Field.
Parse error: syntax error, unexpected T_STRING in /home/screwpie/public_html/wp-content/plugins/advanced-custom-field-widget/adv-custom-field-widget.php(566) : eval()’d code on line 3
Details and workaround on the Mantis bug tracker here:
http://mantis.outer-reaches.co.uk/view.php?id=29
The problem appears to come from line 566 of adv-custom-field-widget.php (version 0.991):
eval( '$cvalue="\n<div class=\"advcustomvalue\">\n' . $cvalue . '\n</div>\n";' );
If I unwrap the eval around that assignement to $cvalue – “it works for me” (I don’t know whether that eval is important somewhere else – I’ve likely broken the plugin somewhere else, but it’s working for now on my site if I replace that line with:
$cvalue="\n<div class=\"advcustomvalue\">\n' . $cvalue . '\n</div>\n";
http://wordpress.org/extend/plugins/advanced-custom-field-widget/
- The topic ‘Minor brokenness/error with shortcode embedding’ is closed to new replies.