Commit 886cc0da authored by numeroteca's avatar numeroteca

make max nº of post per page 50 for archive pages

parent 60af246d
......@@ -36,3 +36,14 @@ function in_numeroteca_enqueue_styles() {
add_action( 'wp_enqueue_scripts', 'in_numeroteca_enqueue_styles' );
// Change Number of Posts on Archive Page
// via
function number_of_posts_on_archive($query){
if ($query->is_archive) {
$query->set('posts_per_page', 50);
return $query;
add_filter('pre_get_posts', 'number_of_posts_on_archive');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment