Support

Account

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');