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.
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!