Using shortcode in theme template
-
Hi there,
Great plugin. I’m trying to add a message to all archive & post pages to non-members by embedding the shortcode [level-registered-no-subscription-expired-subscription] to my theme. I’ve tried the following:
echo do_shortcode(apply_filters(“the_content”, “[level-registered-no-subscription-expired-subscription]”));
echo do_shortcode(“[level-registered-no-subscription-expired-subscription]”]);
echo apply_filters( ‘the_content’,’ [level-registered-no-subscription-expired-subscription]” ‘);
None are working and just show a printed return.
Any thoughts? Do the shortcodes need to be registered first?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Using shortcode in theme template’ is closed to new replies.