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
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.