Two problems: Paging and what happens when you page
-
FIRST PROBLEM: PAGING
If you look at the bottom of the page using the Author Avatars list (at https://settingforth.org/?page_id=815), you see<< 0 1 2 >>
Zero is highlighted on page 1 of the author list. There should be no zero, and 1 should be highlighted. This is a small problem, but it does look unprofessional. Please let me know how to fix it. I do not write php but am comfortable with some coding and can certainly replace one line of code with another.
SECOND PROBLEM: WHAT HAPPENS WHEN YOU PAGE
I have 45 authors, so if I use page-size=20, I should have one page for authors 1-20, a second page for authors 21-41, and a third page for authors 42-45. The first page works. The second page works. The third page is blank. Or at least that’s what I thought until I scrolled up to see the top of the page and found those four authors. I think what is happening is that page-size=20 is forcing the final page to act as though there were 20 more authors to display on it. How can I fix this?Here’s my shortcode, in case you need it: [authoravatars roles=administrator,author min_post_count=1 order=post_count sort_direction=desc avatar_size=180 show_name=true show_postcount=true show_biography=true page_size=20]
- The topic ‘Two problems: Paging and what happens when you page’ is closed to new replies.