0

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

2

1 Answer 1

0

In line 51:

query_posts("s='$s'&cat=177");

change to this:

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("s='$s'&cat=177&paged=$paged");
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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