Syntax for using do_shortcode function
-
I’m trying to use do_shortcode to tell the Post Layout plugin to insert Add To Cart icons on archive pages. The shortcode that I am trying to use is [eshop_addtocart]. I have tried:
<? php do_shortcode ([eshop_addtocart]); ?>
and
<? php do_shortcode ('[eshop_addtocart]'); ?>
but those don’t seem to work. Can someone help steer me in the right direction? I have searched the forum and the docs but still don’t understand how to make this work.
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Syntax for using do_shortcode function’ is closed to new replies.