WordPress Shortcode in PHP Template

Shortcodes are bits of information, usually from plugins, you can use to add content and functionality to posts and pages using the WordPress WYSIWYG editor, but if you need to add a shortcode directly to a WordPress PHP template then use the following code below.

That’s all you need to add a WordPress shortcode to a php template.