Here is from query_posts()‘s doc page
Pagination won’t work correctly, unless you set the ‘paged’ query var appropriately:
adding the paged parameter
is there a reason why you set the number of ‘posts_per_page’ in the query, and not general from dashboard – settings – reading ?
http://codex.wordpress.org/Pagination
I’m with alchymyth on this one. Why?
That is one of the reasons I don’t use query_posts unless I’m completely wanting to alter the loop. Try using WP_Query or pre_get_posts.
“Is there a reason why you set the number of ‘posts_per_page’ in the query, and not general from dashboard – settings – reading ?”
No, I just copied the example code and realized there is no difference if its there or not. Of course of reasons of maintenance I would remove it there when I fixed the problem, so that its not overwriting the settings from the dashboard and would cause confusion.
Anyway, removed this param but the result is still the same:
http://pastebin.com/5Q7yAPc6
For me is possible to remove the category param so that I would not have to change the loop, but when I leave out
paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array('cat' => -6, 'paged' => $paged );
query_posts($args);
there will be no results found at all, which confuses me even more.