hussainsm Posted September 13, 2019 Report Share Posted September 13, 2019 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 Link to comment Share on other sites More sharing options...
Support Jitendraa Posted September 14, 2019 Support Report Share Posted September 14, 2019 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now