Home › Forums › Backend Issues (wp-admin) › Narrow the search of relationship field types › Reply To: Narrow the search of relationship field types
searching titles and content is something that is part of WP and not something that is specific to ACF. Basically, ACF does a standard query with the ‘s’ parameter set. This can be altered with quite a bit of work, but I don’t know if you can limit it only to the query being done by the relationship field.
I found some code here for removing the content from search. https://nathaningram.com/restricting-wordpress-search-to-titles-only/
The problem is that I do not think there is anything that will identify the query as being for the relationship field.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.