Skip to content

Instantly share code, notes, and snippets.

@robin-scott
Created March 14, 2018 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robin-scott/0db676fe28cae3672fefeb05b4f953b0 to your computer and use it in GitHub Desktop.
Save robin-scott/0db676fe28cae3672fefeb05b4f953b0 to your computer and use it in GitHub Desktop.
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