Using a very easy method, let’s see how we can call a shortcode into our WordPress template using PHP code. Usually, the shortcode is used by the plugin developers to accomplish a certain task with minimal code effort to display.
A shortcode is a WordPress-specific code that lets you do nifty things with very little effort. Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line.
WordPress
A simple PHP function do_shortcode
can do the trick. Here is the magic line.
<?php echo do_shortcode('[your_shortcode]'); ?>
If you need to read more on shortcode development in wordpress.
To know more about shortcodes in wordpress.
Click here to read more on generate custom shortcode for wordpress plugin
If you have implemented the same method then comment below.