Home › Forums › Bug Reports › Calling get_field() within acf/init causes PHP notice › Reply To: Calling get_field() within acf/init causes PHP notice
Issue resolved.
Sorry for the false alarm.
Stacktrace #14 Customtheme::load_header_nav() had the get_field() before acf/init.
After that ACF->init() is called (#10) and that fires all acf/init actions and after all the actions it shows the notice.
This is somehow missleading. I guess it should already have stopped at #14.
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.