WordPress.org

Ready to get started?Download WordPress

Ideas

Increase default pagination value

  1. Ian Dunn
    Member

    I think that the default value of 20 items per page on the list table screens (posts, pages, media, users, CPTs, etc) is too low, and makes the user experience frustrating. It's annoying that I have to click over and over, and each time load a whole new page, just to browse for things that could have easily been displayed on the first page load.

    I can manually set a higher default value via the Screen Options dialog, but I have to do that for each screen, on every site I build.

    I can search instead of browse, but that still results in another page load, and then I have to dig through the results, where the sort order isn't as intuitive as it is when browsing.

    I think somewhere between 40 and 75 would be a much more reasonable default value, and it'd also be nice to make the default value filterable, so that a plugin could easily change it site-wide if people want to raise or lower it.

    A different alternative would be to use an infinite scroll, but I think that from a UX standpoint, those are even worse than pagination.

    Posted: 1 year ago #
  2. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    I can manually set a higher default value via the Screen Options dialog, but I have to do that for each screen, on every site I build.

    Every screen? You mean pages and posts, and just once. It's supposed to save between pages.

    Posted: 1 year ago #
  3. Ian Dunn
    Member

    Right, not on every page of every screen, but on every screen (posts, pages, custom post types, media, users, comments). I work on a dozen or two new installs a year, so it's just not practical to manually set it on every screen, on every install.

    Posted: 1 year ago #
  4. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    I wonder if you could whip up a plugin for that (mu plugin).

    Posted: 1 year ago #
  5. Ian Dunn
    Member

    I already tried that, but couldn't get it working. I might be able to if I spent more time on it, but the method (get_items_per_page() or something like that) in the WP_List_Table class only has a filter on the $option variable, not on the $default one. So, you can set the default if you know all the $option keys in advance, but with CPTs and maybe some other situations, you don't, so you'd have to do things like first grabbing all the CPT slugs, then looping through an array to add a filter callback for each, etc.

    There's something else going on w/ it too, because even when I temporarily changed that function to always return 100, I still got 20 items.

    Posted: 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    1 Vote
  • Status

    This idea is under consideration