Last active
August 29, 2015 14:22
-
-
Save daronspence/66ed180a857bb59799af to your computer and use it in GitHub Desktop.
ACFW Custom Template Directory
This file contains hidden or 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
add_filter( 'acfw_custom_template_dir', 'my_acfw_custom_directory' ); | |
function my_acfw_custom_directory( $template_dir ){ | |
$template_dir = get_stylesheet_directory() . '/my-templates/'; | |
return $template_dir; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changed
get_stylesheet_directory_uri()
toget_stylesheet_directory()
which returns a path rather than a URL which is required to include files.