Hello,
I'm utilizing a Wordpress plugin that has a built in custom shortcode like so: [shortcode template-type]value[/shortcode].
When I enclose the shortcode in a div, the code executes just fine:
do_shortcode('<div>[shortcode template]value[/shortcode]</div>', false);
However, when I try to run the shortcode as an HTML attribute, it does not work:
do_shortcode('<div [shortcode template]value[/shortcode]></div>', false);
I made sure to take into account these changes to the Shortcode API in 2015, and am still unsure why do_shortcode does not work as described in the "Shortcodes with Filtered Styles" workaround.
I am attempting to understand the Regex in the do_shortcode source code, and am checking to see if it includes [shortcodes][/shortcodes] inside of HTML elements:
preg_match_all( '@[([^<>&/[]x00-x20=]++)@', $content, $matches );
Any help or advice would be greatly appreciated.
Thanks for your time,
Blaine
