Support

Account

Home Forums ACF PRO Issues when including ACF Pro in a theme Reply To: Issues when including ACF Pro in a theme

  • I’m also experiencing problems.
    The path is correct (see images at the bottom of this post).
    What am I doing wrong?

    Here is my code:

    include_once( 'acf/acf.php' );
    
    add_filter('acf/settings/path', 'my_acf_settings_path');
     
    function my_acf_settings_path( $path ) {
     
    	// update path
    	$path = get_bloginfo('stylesheet_directory') . '/acf/';
    	
    	// return
    	return $path;
    	
    }
    
    add_filter('acf/settings/dir', 'my_acf_settings_dir');
     
    function my_acf_settings_dir( $dir ) {
     
    	// update path
    	$dir = get_stylesheet_directory_uri() . '/acf/';
    	
    	
    	// return
    	return $dir;
    	
    }

    Errors: http://www.patrickheiloo.nl/resources/acf/error_codes.png

    Empty import/export: http://www.patrickheiloo.nl/resources/acf/empty_screen.png

    File structure: http://www.patrickheiloo.nl/resources/acf/structure.png