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); ?>
- ">
; ?/>/img/ico/feed.png)
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
with nothing in it. Can anyone see where I am going wrong please as this is driving me nuts.
Cheers everyone.
Phil