How to use WordPress Shortcodes in your WordPress Theme or Page Template
Most of us who design and manage sites using WordPress make heavy use of “short codes” as a quick and easy way to add image galleries, videos, and other media.
Did you know you can use Shortcodes in your WordPress page templates and theme as well? It’s just a matter of tapping into the powerful WordPress short code API.
I needed to add a payment form using a short code from the Gravity Forms Plugin in a custom WordPress Page template – in this case my theme file “template_gravityform.php”.
Here’s the code I used:

(code is shown as an image to prevent WP from rendering it)
Nice and simple, no?
It took me a while to track down just the right syntax to do that, and I hope this post can save you some of that time!
p.s. Check out our free mobile app maker for WordPress – it’s pretty cool!