Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ACFW Custom Template Directory
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;
Copy link

daronspence commented Jul 17, 2015

Changed get_stylesheet_directory_uri() to get_stylesheet_directory() which returns a path rather than a URL which is required to include files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment