Home › Forums › ACF PRO › How to correctly set paths if ACF plugin is added to a theme dir › Reply To: How to correctly set paths if ACF plugin is added to a theme dir
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');
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.