Home › Forums › General Issues › Exact search with ACFs › Reply To: Exact search with ACFs
There are some premium search plugins that will solve the 1st problem. One of them can be found here https://facetwp.com/, there are others. It needs to be a search tool that will work with ACF and there aren’t that many of them.
There is nothing that I am aware of that will search related content. That is search the content of a related post in a relationship field and consider it to be part of the post that’s being shown. If you do find a solution for this that works without needing to manipulate data in some way, please let me know.
What I do for searching related content is that I build filters and actions that add the related content to hidden meta fields in the post. So, basically, all the content from all of the related posts is duplicated in the posts that are searched so that it can all be searched at once. I’ve even created a plugin that will do this integration. The main problem with this is all the extra content and custom fields that are required to make it work. https://github.com/Hube2/custom-field-converter
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.