I can't get pagination inside categories listings to work.

I'm using a custom query, with the get_query_var('paged'):

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
'category_name' => 'concours-fun',

Also tried the Category Pagination Fix plugin.

My permalink structure: /%category%/%postname%-%post_id%.html

Example of the error: http://www.essentielle.be/concours-fun/page/2

Any idea as to what else i should check?


get_query_var('paged') should be get_query_var('page'), however, you should use a pre_get_posts action hook to alter the query rather than using query_posts in the template, which is a waste of resources (see this answer for more info).

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.