Created
June 20, 2013 21:35
-
-
Save eddiejhong/5826876 to your computer and use it in GitHub Desktop.
How to include files in the wordpress directory without absolute paths.
*Pathing should be delegated to the code. Use get_template_directory() to dynamically get the path to the template.
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
<?php | |
$path = get_template_directory(); | |
include($path."/example.php"); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment