How Can I Execute Shortcode In My Theme

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

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments