Skip to content

Commit

Permalink
Group by post ID on posts table, rather than events table in case the…
Browse files Browse the repository at this point in the history
… latter does not exist. Ref #111
  • Loading branch information
stephenharris committed Jul 26, 2013
1 parent f9eec16 commit 2a85b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/event-organiser-archives.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function eventorganiser_event_groupby( $groupby, $query ){
global $wpdb;

if(!empty($query->query_vars['group_events_by']) && $query->query_vars['group_events_by'] == 'series'){
return "{$wpdb->eo_events}.post_id";
return "{$wpdb->posts}.ID";
}

if( eventorganiser_is_event_query( $query, true ) ):
Expand Down

0 comments on commit 2a85b99

Please sign in to comment.