Home › Forums › ACF PRO › Load ACF Pro from inside a plugin › Reply To: Load ACF Pro from inside a plugin
If you haven’t already figured this out try using dirname(__FILE__) instead of only __FILE__ when using plugins_url()
so instead of this:
plugins_url( '/acf-pro/', __FILE__ )
Try this:
plugins_url( '/acf-pro/', dirname(__FILE__) )
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.