templates - Wordpress multiple pages to show posts -
i don't have code or pages show yet i'll have describe question.
i have grouping of post in wordpress, no categories or taxnomoy yet.
on home page have 'view posts' link linked view_all_post.php page.
on view_all_posts.php page have simple loop shows posts.
i want show 10 posts on view_all_posts.php page , have rest of posts on next page linked on view_all_posts page.
so view_all_posts show 10 post , have links show next page rest of links on, have links next page if there more posts show.
i know how limit number of post - post_per_page
my problem how create pages rest of posts.
i'm sure don't create view_all_post page because don't know how many post there , won't dynamic.
is there template page should using single.php show actual posts.
in short, need pagination of posts
in word-press. check useful function word press.
<?php echo paginate_links( $args ); ?>
see finish refrence
wordpress templates
No comments:
Post a Comment