Using Shortcode outside of the_content()

I had some shortcode that couldn’t be used in the body of certain posts. It needed to be inserted in a template, but of course that prevented it from being rendered by WordPress because it was no longer being parsed within the_content().  Finally discovered the answer was simple:

<?php echo do_shortcode('[mappress]'); ?>
Popularity: 4% [?]
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

No related videos as yet.

Comments, Corrections, Suggestions?

All trademarks and copyrights appearing on this website are the property of their respective owners. All rights Reserved.