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!
🗓️ Just one more day until the next session of ACF Chat Fridays! Make sure to register for the latest updates on what’s coming in ACF 6.1!— Advanced Custom Fields (@wp_acf) March 30, 2023
📆 Friday 31st March 3pm UTC
👉 Register here - https://t.co/3UtvQbDwNm pic.twitter.com/7xtEJakeQN
© 2023 Advanced Custom Fields.