How to add post page pagination to template part? September 18, 2022 by Tarik Billa Right after the endwhile line, try adding… <?php the_posts_pagination(); ?> more info on the_posts_pagination()