Check our WordPress 101 & 201 FREE Video Tutorials here
Jump to content
hussainsm

[Content Locker] Add shortcode to template

Recommended Posts

Hi,
 
I am trying to use the do_shortcode function in a template to add the shortcode.
<?php echo do_shortcode('[signinlocker id="1234"]');?>
<?php the_content(); ?>
<?php echo do_shortcode('[/signinlocker]');?>

Can you confirm if this works and if I am doing it the right way?

It doesn't seem to be working for me.
 
Thanks

Share this post


Link to post
Share on other sites

Hello,

Thank you for contacting MyThemeShop.

The shortcode won't work this way. You need to add it inside the page/post editor to make it work.

Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...