Skip to content

Instantly share code, notes, and snippets.

@daronspence
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daronspence/66ed180a857bb59799af to your computer and use it in GitHub Desktop.
Save daronspence/66ed180a857bb59799af to your computer and use it in GitHub Desktop.
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;
}
@daronspence
Copy link
Author

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