How to use WordPress shortcodes within your Theme

Some people don't know about this cool function.

You can use shortcodes within your WordPress theme like this:

<?php echo do_shortcode("[example_shortcode]"); ?>

Codex Reference: http://codex.wordpress.org/Function_Reference/do_shortcode

About Ricard Torres

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

@ricard_dev @ricard_dev

📝 Blog 🎙 Podcast

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*