diff --git a/functions.php b/functions.php index 07f9eeb..236745e 100755 --- a/functions.php +++ b/functions.php @@ -1,64 +1,65 @@ set( 'nopaging', true ); /** * Increase Podcasts per page * * See https://gitpull.it/T160 * See https://gitpull.it/T178 * */ - } elseif( $query->get_queried_object()->name === 'podcast' ) { + } elseif( is_post_type_archive( 'podcast' ) ) { $query->set( 'posts_per_page', 16 ); } } );