I have the following code in my search results page to split up posts per category.

When I go to the 2nd page of pagination, the results are exactly the same as the first.

I'm assuming $paged has to be inserted but i'm not sure where.

Any help would be appreciated

Code: http://wordpress.pastebin.com/qWnaLxgd


In line 51:


change to this:

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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