Wp-calypso: Pages: allow authors to set number of posts for blog page (was in Reading Settings in wp-admin)

Created on 2 May 2017  ·  11Comments  ·  Source: Automattic/wp-calypso

This is for parity, split out from #3900

As a WordPress.com user, I want to be able to change the "posts per page" number on my “blog posts” page on my /pages list so that I can avoid visiting wp-admin to make this change.

How the current Calypso /pages list looks — no setting here yet:

screen shot 2017-05-02 at 10 53 27

Previously in wp-admin:

screen shot 2017-05-02 at 10 59 38

Pages Posts [Pri] High [Type] Enhancement

All 11 comments

Let's get this one in right away to close this UX gap.

Any thoughts on the interface?

At the minimum we could change the 'Your latest posts, shown on homepage' text to be an inline form label like this:

image

It could say Show [10] posts at a time on my homepage

It could say Show [10] posts at a time on my homepage

Since the blog isn't always on the homepage, it should say something more like:

Show [10] posts at a time on my blog

We should also keep in mind that Infinite Scroll loads posts in batches that aren't affected by this setting. This relates to something else I think we're currently missing in Calypso on WP.com, which is the ability to turn default IS into "click-to-scroll" (aka "load more posts) IS, a setting currently at WP Admin > Settings > Writing:

Default IS
reading settings intergalactic 2 wordpress

Click-to-Scroll IS

reading settings intergalactic 2 wordpress-1

cc @tyxla do we account for the 'click-to-scroll' alert if the user has footer widgets in our recent changes to the calypso infinite scroll settings (as per @kathrynwp's last comment?)

As a related note: #13568 — this relates to implementing CPT "posts per page" settings because it'll be in the same place, and use the same UI for toggle and page number.

@rickybanister good call, we're not taking that into consideration right now. I've opened #13637 to track that one separately, it could use a couple of design 👀 before we develop it.

With #13718 we've added posts per page under general settings. This included a change in r155891-wpcom to allow the setting to be set via the API, which was also submitted as a Jetpack PR: https://github.com/Automattic/jetpack/pull/7154

Nice work @jonathansadowski! Guess we can close this one @lancewillett? Or do you think this setting should be implemented elsewhere, too?

Fine to close. CC @rickybanister who is going to look at a better location for it as General isn't ideal. Writing might be OK, as the other CPT settings and page counts will be there.

Following up to say the "Posts Per Page" setting location was tracked in #13868 and closed in #13916.

Thanks for keeping stuff organized @designsimply 🙇

Was this page helpful?
0 / 5 - 0 ratings