WordPress Speed Up Service | WordPress Website Maintenance Packages Reply To: How to add search filter by tag values ?, by Daniel James Take a look at the wpdb class. You should use that to run a custom query on the database. Although, you could potentially use the pre_get_posts filter to update the query but I think that might be a bit too taxing if you’re wanting to go down a list of preferred parameters. Using something like SELECT * FROM posts WHERE post_title LIKE... might work. Either way, it’s an expensive query to perform I think so it might take some time getting it right. As for why that code isn’t working, take a look at this answer on the WP Stack Exchange. I think it has something to do with the array structure you have. Reply To: How to add search filter by tag values ?