Skip to content

Instantly share code, notes, and snippets.

Created June 18, 2015 16:58
Show Gist options
  • Save anonymous/b322403cd01558f8c79f to your computer and use it in GitHub Desktop.
Save anonymous/b322403cd01558f8c79f to your computer and use it in GitHub Desktop.
add_action( 'pre_get_posts', 'tribe_post_date_ordering', 51 );
function tribe_post_date_ordering( $query ) {
if ( ! empty( $query->tribe_is_multi_posttype ) ) {
remove_filter( 'posts_fields', array( 'Tribe__Events__Query', 'multi_type_posts_fields' ) );
$query->set( 'order', 'DESC' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment