Created
August 20, 2016 02:02
-
-
Save BeardedGinger/56de2ae8b233095d8e8d1fa10b4f632c to your computer and use it in GitHub Desktop.
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', 'expand_tribe_category_ppp' ); | |
function expand_tribe_category_ppp( $query ) { | |
if( is_admin() ) | |
return $query; | |
if( $query->tribe_is_event_query() && is_tax( 'tribe_events_cat' ) ) { | |
$query->set( 'posts_per_page', 10 ); | |
} | |
return $query; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment