Add specific postmeta to search query
For WP_Query(), you don’t need to add the % before and after the keyword when using LIKE as comparison. WP_Query() will handle it for you. If you add %, WP_Query() thinks that you want to add that character itself to the search. That’s the first reason you don’t see any results. The second problem is … Read more