Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the Posts Page edit experience #45099

Closed
jameskoster opened this issue Oct 19, 2022 · 5 comments
Closed

Improve the Posts Page edit experience #45099

jameskoster opened this issue Oct 19, 2022 · 5 comments
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.

Comments

@jameskoster
Copy link
Contributor

The posts page is unique in the sense that it will always resolve to display a specific template (either Home or Index). This is detailed in the template popover:

Screenshot 2022-10-19 at 09 36 58

But otherwise the edit experience feels like any other page. You can add blocks and so on, but they will never actually appear on the frontend because the Query Loop block in the Home or Index template will only display posts. You can add a parent page, a Feature Image, manage discussion options... but none of this will have any affect on the display. All of this combines to create a rather confusing experience.

One option to explore would be linking to the Site Editor to edit the relevant template, but there are likely others to explore.

@fabio-blanco
Copy link
Contributor

Oh my God!!... Two days trying to figure out how to create a posts page!
Indeed @jameskoster you're right, that's a terrible experience!!

It turns out that all I needed was to create a blank page with any template and set it as the "posts page"!

If the the content of the page is irrelevant why to force the user to choose a blog page? It could just use the default home.html or index.html and just let the user choose the page slug.

If the user is able to choose the page to use as a blog page then please allow the user to edit the page template.

That's a really bad usability experience for any one that wants to use a static page as a starting page and also have a blog page!!

@jameskoster
Copy link
Contributor Author

why to force the user to choose a blog page?

If I recall correctly it works this way because some classic (PHP) themes would provide template compositions with multiple queries which enable the Posts Page to display the content of that page in addition to the latest posts. This doesn't exist in block themes which is why the experience is so awkward, but we do still need to support classic themes.

@annezazu annezazu added [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") and removed [Feature] Full Site Editing labels Jul 24, 2023
@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Aug 2, 2023
@jeflopodev
Copy link

jeflopodev commented Oct 21, 2023

I was extremely confused because of that dialog on how to setup the "Posts page" in such a way that I could use different templates and not just the home.html template.

Since it says that the template cannot be changed. I thought that the only way to use different custom templates would then be to unset the posts page (--select-- option) in the "Your hompage displays" section, and then go to a page "Quick Edit" > "Template" to set my custom template (with query block markup). But if you do that, the Query Block just don't populate the posts lists... I guess, it should be without context or something like that.

I have only understood how it's done when I installed the TT4 theme, and analyzed how the theme implements the different pages (portfolio / business / blogging). So I went to the "Blog Home" template, and then I saw this:

image

I was completely ignoring that it was possible to replace "the content" of the template from there.

I think that is easy to visually miss that menu option or to forget about that it even exist. Maybe the option shouldn't be so hidden in the menu, and be in the sidebar below the description.

I think I would delete the highlighted message in yellow "The posts page template cannot be changed". That is the confusing part. And I would do something like that:

image

So you can pick, what template to replace.

image

I don't know if this could be done. But It's what would make most sense to me.

I also think that this page https://wordpress.org/documentation/article/template-editor/ should illustrate/highlight that you can replace "the content" of the template from there (using Template Types). And that it should explain the difference between editing a template, and replacing "the content" of a template.

@jameskoster
Copy link
Contributor Author

So I went to the "Blog Home" template, and then I saw this

That affordance only appears if the active theme supplies patterns associated with the template, but it might be worth including some in core too. I agree it could be more prominent, and that's what #44582 aims to achieve.

We might reuse that design when editing pages that intrinsically resolve to specific templates like Front Page and Home. To connect a dot, I suggested this here as well cc @richtabor.

@jameskoster
Copy link
Contributor Author

I guess this is mostly a duplicate of #29821

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

5 participants