Skip to content

Instantly share code, notes, and snippets.

@bkaminski
Last active March 25, 2017 22:04
Show Gist options
  • Save bkaminski/da07bea06f8192fd7b978312dc747adc to your computer and use it in GitHub Desktop.
Save bkaminski/da07bea06f8192fd7b978312dc747adc to your computer and use it in GitHub Desktop.
//The correct way to call an include file from within a custom template
<?php include get_template_directory() . '/inc/example_inc.php'; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment