diff --git a/archive-podcast.php b/archive-podcast.php index ba709be..b2dab18 100644 --- a/archive-podcast.php +++ b/archive-podcast.php @@ -1,101 +1,101 @@

'podcast', 'posts_per_page' => 16, 'post_status' => 'publish', 'suppress_filters' => false, 'orderby' => 'meta_value', 'order' => 'DESC', 'meta_key' => '_podcast_date', 'paged' => $paged ); /** * [$wp_query execution of the query] * @var WP_Query */ $wp_query = new WP_Query( $args ); if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
>

>

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