diff --git a/functions.php b/functions.php index 236745e..10d5f56 100755 --- a/functions.php +++ b/functions.php @@ -1,65 +1,69 @@ set( 'nopaging', true ); + if( !is_admin() && $query->is_main_query() ) { + + /** + * Display all the Speakers in one single page + * + * See https://gitpull.it/T162 + * See https://gitpull.it/T178 + */ + if ( is_tax( 'membertype' ) ) { + $query->set( 'nopaging', true ); + + /** + * Increase Podcasts per page + * + * See https://gitpull.it/T160 + * See https://gitpull.it/T178 + * + */ + } elseif( is_post_type_archive( 'podcast' ) ) { + $query->set( 'posts_per_archive_page', 16 ); + } - /** - * Increase Podcasts per page - * - * See https://gitpull.it/T160 - * See https://gitpull.it/T178 - * - */ - } elseif( is_post_type_archive( 'podcast' ) ) { - $query->set( 'posts_per_page', 16 ); } } );