Can I use a Shortcode output as an HTML attribute value?
Within a span, the shortcode output works:
<span>[sola_testimonials_count type='all']</span> Result: <span>5,205</span>
But as an attribute value, it doesn’t get parsed:
<span data-value="[sola_testimonials_count type='all']"></span> Result: <span data-value="[sola_testimonials_count type='all']"></span>
This is a third-party plug-in, but I obviously have the code and can manipulate it. Is there a way I can get the shortcode to parse as an HTML attribute value? I’m not a WordPress developer so forgive me if this is an obvious answer.
0plugins, shortcode 6 years 2017-01-27T14:19:54-05:00 2017-01-27T14:19:54-05:00 0 Answers 74 views 0
Leave an answer