Home › Forums › Backend Issues (wp-admin) › Problem with Local Dev, Symbolic Links, & Asset Paths › Reply To: Problem with Local Dev, Symbolic Links, & Asset Paths
Hi @gato-gordo,
Thanks for the post.
You can customize the paths and directory that has ACF by making use of the acf/settings filter.
// 1. customize ACF path
add_filter('acf/settings/path', 'my_acf_settings_path');
function my_acf_settings_path( $path ) {
// update path
$path = get_stylesheet_directory() . '/acf/';
// return
return $path;
}
// 2. customize ACF dir
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;
}
// 4. Include ACF
include_once( get_stylesheet_directory() . '/acf/acf.php' );
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.