Using do_shortcode()
-
Hi,
using the short code in each article works fine, but I’d rather use do_shortcode in a template, then we don’t have to insert the shortcode in every article.
This is what I have now in the article’s template, instead of <? the_content(); ?> I use:
<? echo do_shortcode( ‘[blendlebutton]’ . the_content() . ‘[/blendlebutton]’ ); ?>
It doesn’t do anything, the template still works, but it doesn’t show the Blendle Button?
Any idea why?
Arjen
The topic ‘Using do_shortcode()’ is closed to new replies.