-
-
Save jo-snips/2004710 to your computer and use it in GitHub Desktop.
The Events Calendar: show all events on a single day view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('pre_get_posts', 'tribe_filter_days_on_single_day', 20); | |
function tribe_filter_days_on_single_day($query) { | |
if (tribe_is_day()) { | |
$query->set('nopaging', true); | |
} | |
return $query; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment