Home › Forums › ACF PRO › Problem with search title in PostObject › Reply To: Problem with search title in PostObject
There isn’t a way to do the search that you are looking for, at least not easily.
Normally when searching by post title and a meta query this is “AND” meaning that both the title AND the meta value must contain what you are searching for.
There isn’t an easy way to do a search where the “post_title” OR the “meta_key” matches. Honestly, I haven’t a clue how to do this.
What I would do is I would be to copy the post title to a meta value using an acf/save_post action. Then you can that meta key for searching. As far as breaking down the search string into words, I don’t know how to do that.
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.