Support » Fixing WordPress » Pagination with max number of pages?

  • Resolved bythegram

    (@bythegram)


    Hi,

    Just thought I’d ask while I do some hunting of my own;

    If I use pagination to show 10 posts a page is there a way to set the max number of pages? (If I have 40 posts but just want to show 30 spread onto 3 pages)

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • FYI this became a non issue once I found a better solution

    In case anyone is curious here is a simplified version of the solution I used;

    untested

    Basically I used an “if” statement with the condition that any post less than 30 gets the normal information “else” (all posts over 30) I reset the wp query.

    Seems to be working great on my site but I haven’t tested the simplified code so if you have troubles let me know.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pagination with max number of pages?’ is closed to new replies.