}
}
- if ( !empty( $this->tax_query->queries ) || !empty( $q['meta_key'] ) ) {
- $groupby = "{$wpdb->posts}.ID";
- }
-
// Author/user stuff
if ( empty($q['author']) || ($q['author'] == '0') ) {
$where .= $clauses['where'];
}
+ if ( ! empty( $this->tax_query->queries ) || ! empty( $q['meta_query'] ) ) {
+ $groupby = "{$wpdb->posts}.ID";
+ }
+
// Apply filters on where and join prior to paging so that any
// manipulations to them are reflected in the paging by day queries.
if ( !$q['suppress_filters'] ) {