Skip to content

Instantly share code, notes, and snippets.

@reactormade
Created April 27, 2014 23:54
Show Gist options
  • Save reactormade/11358368 to your computer and use it in GitHub Desktop.
Save reactormade/11358368 to your computer and use it in GitHub Desktop.
Passing variables to get_template_part() in WordPress
include(locate_template('your-template-name.php'));
//original here: http://keithdevon.com/passing-variables-to-get_template_part-in-wordpress/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment