How can I use WordPress shortcodes in my WordPress themes?
Shortcode is a special tag that you can enter into a post that gets replaced with different content when actually viewing the post on the website. If you would like to execute shortcodes in your theme, you can use function do_shortcode(). See following example
echo do_shortcode("[example_shortcode]");