Skip to content

Instantly share code, notes, and snippets.

@dividezigns
Last active May 27, 2018 17:48
Show Gist options
  • Save dividezigns/db2039a2a02dcedccd681696f5dee619 to your computer and use it in GitHub Desktop.
Save dividezigns/db2039a2a02dcedccd681696f5dee619 to your computer and use it in GitHub Desktop.
Add custom shortcode inside template file
// This shortcode is placed in any template file
<?php echo do_shortcode("[featured-project]"); ?>
// This shortcode is placed in WordPress page
[featured-project]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment