Order search results by category
I stumbled over this looking myself for a solution to order posts from WP_Query by their related terms, which seems to be the quintessence of this question. (I’ll answer to the special search case of the question below the general description.) Sorting Posts by related Terms So the key is the MySQL function FIELD() which … Read more