I don't have any code or pages to show yet so I'll just have to describe my question.
I have group of posts, no categories or taxnomoy yet.
On my home page I have a 'View all posts' link that is linked to a view_all_post.php page.
On the view_all_posts.php page I have a simple loop that shows all the posts.
I only want to show 10 posts on the view_all_posts.php page and have the rest of the posts on the next page that will be linked on the view_all_posts page.
So the view_all_posts will show 10 post and then have links to show the next page with the rest of the links on, that will have links to the next page if there are more posts to show.
I know how to limit the number of post - post_per_page
My problem is how to create the extra pages with the rest of the posts.
I'm sure I don't create another view_all_post page because I don't know how many post there will be and so it won't be dynamic.
Is there a template page I should be using like single.php to show actual posts.
If it helps here is the view-all-post.php
<h2>View all Posts</h2> <section class="allPosts”> <?php $allposts_args = array( 'post_type' => 'post', 'order' => 'ASC', 'orderby' => 'date', 'posts_per_page' => 10, ); $allposts_loop = new WP_Query($allposts_args); if($allposts_loop->have_posts()): while($allposts_loop->have_posts()): $allposts_loop->the_post(); ?> <div class=“thePost"> <a href="<?php echo get_permalink($post->ID); ?>"> <h3><?php echo the_title(); ?></h3> <h4>by </h4> <p><?php echo the_content(); ?></p> </a> </div> <?php endif; endwhile; ?> <?php wp_reset_postdata(); ?> </section>