Page navigation doesn’t seem to work when I add offset?

I am trying to get a simple navigation to work, it works when I don’t use offset in the arguments.
but I like to do something special with the first post

$paged = ( get_query_var(‘paged’) ) ? get_query_var(‘paged’) : 1;

$args = array(
‘posts_per_page’ => ‘6’,
‘cat’ => 5,
‘orderby’ => ‘date’,
‘order’ => ‘DESC’,
‘paged’ => $paged
);`

So for these I add

$paged = ( get_query_var(‘paged’) ) ? get_query_var(‘paged’) : 1;

$args = array(
‘offset’ => 1, //<—
‘posts_per_page’ => ‘6’,
‘cat’ => 5,
‘orderby’ => ‘date’,
‘order’ => ‘DESC’,
‘paged’ => $paged
);

But with offset the post are not returning correctly just the first 6???

Read more here:: Page navigation doesn’t seem to work when I add offset?

Leave a Reply

Your email address will not be published. Required fields are marked *