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]'); ?>

No related videos as yet.

One Response

  1. It’s working, thanks a lot !

Comments, Corrections, Suggestions?

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

Help Panel

I get an error message when I try to replay a video.
Most videos on this site are URL protected. If you don't watch a video within a minute, the URL expires. So if you want to replay a video, just refresh the page.

Key to Icons

  • Requires Administrator level
  • Video about a plugin
  • Browser issue
  • Video is a tutorial

WordPress Versions

  • Version 2.8
  • Version 2.9
  • Version 3.0
  • Version 3.1
  • Version 3.2
Help