Oops! I see my mistake. I had acf_settings_path included twice. Changed that to dir and it worked. Here’s the working code in case anyone else has this issue:
function acf_settings_path( $path ) {
return get_template_directory() . '/admin/acf/';
}
add_filter('acf/settings/path', 'acf_settings_path');
function acf_settings_dir( $dir ) {
return get_template_directory_uri() . '/admin/acf/';
}
add_filter('acf/settings/dir', 'acf_settings_dir');
I just bought the pro version of the plugin, and I am also having the same issue on a local installation with paths not pulling in JS and CSS when the plugin is included in a theme directory, not as a plugin.
I see that there are a few path settings at the top of acf.php, but I’m not sure if I should be changing these or not:
Any ideas?
// urls
'basename' => plugin_basename( __FILE__ ),
'path' => plugin_dir_path( __FILE__ ),
'dir' => plugin_dir_url( __FILE__ ),