Currently I have a Post Type that has a custom field called ‘searchable-tags’, that I also wish to be able to search this along with the post title altogether and return in the filter result.
I have set the Query’s search to be based on the dynamic WordPress Url parameter and the key set to my filter key which is ‘ts’
I did the same thing to my custom field, which I set a Meta query and the meta key I put ‘searchable-tags’ and to compare it with the dynamic WordPress Url parameter and the key set to ‘ts’ as well.
After this, whenever I search in the input filter, it only return the result that contains the keyword in my custom field, and it is not searching the post title anymore. Does anyone achieved this kind of result before and can point me out what is the correct direction for me to achieve this?
Actually this is escalated as I found out that whenever I want to have the meta query to be in the key with the input filter, and then my taxonomy filter also won’t work anymore. Like some of the value works, and some don’t, this is very strange.