Using get_template_part inside folder
-
I’m using the function get_template_part inside folder but this fails.
For example:
-MainDirectory
-DirectoryOne
-FileOne.php
-DirectoryTwo
-FileTwo.phpI’m trying to call from FileOne.php to FileTwo.php as follows:
<?php
get_template_part(‘DirectoryTwo/FileTwo’);
?><?php
get_template_part(‘../DirectoryTwo/FileTwo’);
?>but don’t work. Any help ?.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Using get_template_part inside folder’ is closed to new replies.