How to use WordPress shortcodes in themes-/templates

This snippet will allow you to insert WordPress shortcodes into your theme-/templates – using WordPress built-in function do_shortcode()

Instructions
Add this code your theme files where you want the shortcode content to be run.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Siteground Web Hosting

Snippet Info

Tested with Wordpress v. 4.9.5
Last Modified: 21.05.2017
Last Reviewed: 21.05.2017

How to use WordPress shortcodes in themes-/templates
1.7 (33.33%) 3 votes
Please report broken snippets.
Report Broken Snippet
SE Ranking