added more post to agenda view

This commit is contained in:
jorge 2024-04-03 03:38:09 +02:00
parent ca2cb8419b
commit 5a508ec76a
1 changed files with 7 additions and 1 deletions

View File

@ -50,7 +50,7 @@ get_header();
$the_query_archive_agenda = new WP_Query(
array(
'post_type' => 'post',
'posts_per_page' => '10', //show all => -1
'posts_per_page' => '100', //show all => -1
'tax_query' => array(
array(
'taxonomy' => 'category',
@ -79,6 +79,12 @@ get_header();
<?php get_template_part( 'template-parts/section', 'each-agenda-entry' ); ?>
<?php endwhile;//end of the loop ?>
<?php
// pagination will not work for custom_query
// https://wordpress.stackexchange.com/a/120408
// how to fix it
the_posts_navigation();
?>
<?php wp_reset_postdata(); ?>
</content>
<?php endif; //end query convo ?>