Usage of the new “posts_clauses” filter in WordPress 3.1?
Below is the query I found somewhere and was going through it. The purpose of query is to sort the posts based on taxonomy. So, I am sharing the code so it might help you understand the use of posts_clauses. function color_clauses_mike( $clauses, $query ) { global $wpdb; if ( isset( $query->query[‘orderby’] ) && ‘color’ … Read more