Home › Forums › ACF PRO › Integrate ACF PRO in a theme › Reply To: Integrate ACF PRO in a theme
It can’t exist at that URL.
http://localhost/fs/website_name/wp-content/plugins/Users/Storm/Sites/fs/website_name/wp-content/themes/theme_name/_includes/acf-pro/inc/datepicker/jquery-ui-1.10.4.custom.min.css?ver=5.0.8
As you can see above, the first part of the URL looks into the /plugins dir. Then the URL starts at /Users after that, which is the URL that $path
is returning with get_stylesheet_directory()
. It should wipe that whole URL and just start from http://
To see what was going with $path
, I tested the following:
$path = get_stylesheet_directory() . "/_includes/acf-pro/";
print_r($path)
returns
/Users/Storm/Sites/fs/swiftcarbon/wp-content/themes/swiftcarbon-theme/_includes/acf-pro/
$path = get_template_directory_uri() . "/_includes/acf-pro/";
print_r($path)
returns
http://localhost/fs/website_name/wp-content/themes/theme_name/_includes/acf-pro/
With get_template_directory_uri()
, there are no errors reported, so presumably it’s finding the files it needs, but then Custom Fields menu item disappears from the WP admin sidebar.
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.