WordPress Search documentation: how to improve search query using taxonomy terms, custom meta fields?

I had the same question a couple of weeks ago. Here’s what I did to make it work for me.

How Do I Use WP_Query to Run This Database Query as Search Result?

If you’ll read through my answer that I posted for reference’s sake, you’ll see that I ended up adding a filter add_filter('post_request','your_function_name'); which basically allowed me to completely rewrite the mysql query that was returning results from the database based off of additional parameters that I was passing through the query string in the URL.

Leave a Comment