-
Notifications
You must be signed in to change notification settings - Fork 127
Post format archive templates #17
Comments
I did quite a bit of exploration for post formats here: x3p0-dev/x3p0-ideas#17 It's probably a bit more involved than we'd want to include a default theme, but just sharing in case any of it's useful. |
What else is needed from design here? There are "post format" templates mocked up here. |
Then I will remove the needs design label. |
@beafialho The theme can include archive templates for post formats. But not templates for single post formats. It is not part of the template hierarchy. |
Hm, actually that does not work either. When the query loop is set to inherit the query from the template, the editor shows all posts, but the front shows the correct post with the expected format. Branch for testing: https://github.com/WordPress/twentytwentyfive/tree/add/post-formats |
I can confirm your steps. Frontend: Editor: Is that WordPress/gutenberg#53049 that needs to fully be addressed? Thinking. The beta is around the corner. TT5 is meant to be a blogging first theme. The post formats work on the frontend, and there's even a "Format" type in the status inspector, already shipping with WordPress. The remaining piece is indeed the admin templates. Given that this format selector already ships, is the missing template type and handling a blocker for this feature to be included in Twenty Twenty-Five? I'd tend to think your branch could be worth merging and seeing if we can fix the bug of the missing template in the block editor post Beta 1. I may be able to wrangle help. Perhaps @draganescu? |
There is one bug fix plus the PHP "backport" to core that still needs to be finished for the query loop filter. These are the two tickets I opened but did not find time to work on: Post Formats: Query loop shows the wrong posts when inheriting the query from the post format archive template Post formats: Archive templates have no description and use the slug instead of a readable name Besides that, it is not possible to create post format templates (of any kind) in the Site Editor. The theme could create custom post templates, one for each supported format, but supporting that long term is trickier if the feature is introduced. |
If the query loop contains multiple formats, say, standard and video, there is no way to use different blocks for the video. |
It has probably not gone unnoticed that there is a request to add support for post formats to block themes in general and Twenty Twenty-Five.
Currently, there are only two things that the theme can do to support post formats:
add_theme_support( 'post-formats')
From the theme developer handbook:
https://developer.wordpress.org/themes/basics/template-hierarchy/#custom-taxonomies
The text was updated successfully, but these errors were encountered: