Home › Forums › ACF PRO › Continuous loop in Relationship field with custom title + custom search › Reply To: Continuous loop in Relationship field with custom title + custom search
Hello,
I’m having the same issue. I’m using Woocommerce, so I need the relationship field to be able to filter by product’s sku. I used the hookes mentioned above by @pedrolima, the original hooks are from StackExchange: http://wordpress.stackexchange.com/questions/178574/acf-relationship-field-search-filtering/207853
Those hooks are working great (they can search in meta data as well as post title) but, as @pedrolima said, it causes to loop the first result again and again instead of showing the relevant results.
Before I used those hooks from Stackoverflow, I tried to use the filter @hube2 mentioned “acf-fields-relationship-query”, I added the meta query that I need to $args array but unfortunately it didn’t work as excepted… It showed no results for any search I typed.
Any help will be appreciated!
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.