In category.php of a WordPress theme, you have the following loop:
if ( have_posts() ) : while ( have_posts() ) : the_post();
// output posts
endwhile; endif;
How do you go abouts outputting this exact same loop but with an offset? I found that you can change the loop by doing a
query_posts('offset=4');
But this resets the entire loop and the offset works but shows all the posts from every category, so I get the impression the query_posts completely resets the loop and does it with only the filter you add. Is there a way to tell the loop:
“do exactly what you’re doing, except the offset make it 4”
Is this possible?
Thanks!
First of all don’t use
query_posts()
see here instead use WP_QueryTry this:
Yes as WordPress stated:
Just follow the pagination workaround instructions and you’re good to go.