Home › Forums › Backend Issues (wp-admin) › Relationship Field Search Won't Work for Custom Post Type › Reply To: Relationship Field Search Won't Work for Custom Post Type
a pre_get_posts filter will effect all queries unless conditions are added for excluding queries based on something in the query. Or in this case you could exclude queries run during AJAX requests. ACF uses a standard WP_Query to get the posts/search results so it will be affected by any pre_get_posts filters active on the site.
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.