Recently, we were given a request from a consumer asking how they may use WordPress shortcodes in their WordPress subject matters. Shortcode is a unique tag that you’ll be able to input right into a publish that will get changed with other content material when in fact viewing the publish at the site. If you’ve ever embedded a WordPress gallery on your weblog, then you definately’ve already noticed the constructed in shortcode. Check out our article on including shortcodes in your subject matters.
Thankfully, WordPress has a very simple serve as known as do_shortcode() that allows you to upload shortcodes in your subject matters. Simply upload the code like this:
<?php echo do_shortcode("[example_shortcode]"); ?>
Simple and simple