Thread Starter
revil
(@revil)
I found offset and tried that, but that pretty much kills things after the second page because it pretty much ignores the paged variable and only selects the offset from the newest post.
So I tried play with the offset based on the page number I was on:
‘offset’=>( 8*($paged-1) – (8-4) )
Which works well except that sometimes the last page won’t show depending on the number of posts.
There has got to be an easier way! (T_T)
Thread Starter
revil
(@revil)
I have tried query_posts.
For example:
if( get_query_var('paged') )
{
$args=array(
'posts_per_page'=>8,
'paged'=>$paged,
);
} else {
$args=array(
'posts_per_page'=>1,
'paged'=>1,
);
}
first page shows up great, but the second page is missing 4 posts because it assumes page 1 also had 8 posts.