Created
March 14, 2018 18:25
-
-
Save robin-scott/0db676fe28cae3672fefeb05b4f953b0 to your computer and use it in GitHub Desktop.
Add a shortcode into your theme php files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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