3 reputation
2
bio website
location
age
visits member for 1 year, 4 months
seen Dec 12 '13 at 20:11

Nov
25
awarded  Scholar
Nov
25
accepted What is wrong with this pagination code?
Nov
25
comment What is wrong with this pagination code?
That works a treat thanks, removed all query calls like you said.
Nov
25
comment What is wrong with this pagination code?
That doesn't seem to work, I still get all posts returned. Should that posts_per_page in functions.php override my posts_per_page=-1 in the category template file?
Nov
25
comment What is wrong with this pagination code?
In the original files I was using 'showposts'. I have changed it to this <?php $recent = new WP_Query("cat=154&posts_per_page=-1"); while($recent->have_posts()) : $recent->the_post();?> but it still doesn't work with the new function you mentioned. Can you explain what you mean by 'normal loop' please?
Nov
25
comment What is wrong with this pagination code?
@CharlesClarkson Thanks Charles, good catch. I did correct this (the linked answer has 2 examples of that code, 1 is correct) and now I'm at the 404 error mentioned above.
Nov
25
revised What is wrong with this pagination code?
Code correction
Nov
24
revised What is wrong with this pagination code?
Additional info
Nov
24
comment What is wrong with this pagination code?
Thanks. I did this and it said there was an unexpected colon in the code of the custom query loop. I copied and pasted again and it seemed to work. However the pagination link goes to /category/category-name/page/2/ which results in a 404 error. Will update the post.
Nov
24
asked What is wrong with this pagination code?
Nov
24
awarded  Editor
Nov
24
revised Pagination to take load off server
Updated for moderators - not duplicate content.
Nov
24
asked Pagination to take load off server