Home › Forums › Backend Issues (wp-admin) › ACF is not defined error (Ver 5.7.9) › Reply To: ACF is not defined error (Ver 5.7.9)
everything you describe point to a problem with your jquery, as you already suspected.
jquery is accessing the websites DOM. if the DOM is not finished with loading, jquery will fail. this is why is sometimes workes. it means that sometimes the DOM is loaded in time, sometimes it takes split seconds longer and jquery wont find anything.
solution is: make sure jquery is executed after the DOM is loaded.
read more here:
https://learn.jquery.com/using-jquery-core/document-ready/
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.