Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add a shortcode into your theme php files
// How to add a shortcode into a PHP theme file in WordPress. By Robin Scott of Silicon Dales. More here: https://silicondales.com/tutorials/wordpress-tutorials/use-shortcodes-wordpress-theme-files/
<?php echo do_shortcode("[YOURSHORTCODE]"); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment