The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › WordPress Issue
Hey everyone. I am using a custom page for my blog section on my wordpress site. I can get it to display all my posts buy i wanted to know how to add pagination to this page.
Here is the code I have so far:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'numberposts' => 999999,
'paged' => $paged,
'posts_per_page' => 3
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
The problem I am having is that the links aren’t showing up at the bottom of the page in fact all I am getting is a blank