Skip to content

Commit

Permalink
Added to the frontend query filter for the events listing detection o…
Browse files Browse the repository at this point in the history
…f the events taxonomies so that the same chronological ordering is used for taxonomies just the same as the post type listing.
  • Loading branch information
timnolte authored and timnolte committed Apr 3, 2014
1 parent 7512bcd commit 3554139
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inc/class-nds-wp-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,10 @@ public function frontend_listing_query( $query )
global $wp_the_query;

// Non-Admin Listing
if ( $wp_the_query === $query && !is_admin() && is_post_type_archive( $this->plugin_post_type ) )
if ( $wp_the_query === $query && !is_admin()
&& ( is_post_type_archive( $this->plugin_post_type )
|| is_tax( $this->plugin_post_type . '_tag'
|| is_tax( $this->plugin_post_type . '_category' )) ) )
{
$meta_query = array(
array(
Expand Down

0 comments on commit 3554139

Please sign in to comment.