Home › Forums › ACF PRO › Retrieving option throws massive error › Reply To: Retrieving option throws massive error
So this is called in a pre_get_posts filter? If it is then this could be the cause of the infinite loop unless you are making sure that your pre_get_posts filter is not running when ACF is doing a query to get the field.
If this is the case
1) WP does hook pre_get_posts
2) Your filter runs and calls get_field()
3) ACF does a query to get the field – Loopback to 1
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.