As Eugene pointed out, you omitted the paged
variable. However, even with that in you can get unexpected behaviour. As illustrated by the various questions we get on query_posts
and pagination:
As Eugene pointed out, you omitted the paged
variable. However, even with that in you can get unexpected behaviour. As illustrated by the various questions we get on query_posts
and pagination: