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

[ Latest Posts ] Implement the LatestPosts block as a variation of the Query block #24521

Closed
5 of 6 tasks
draganescu opened this issue Aug 12, 2020 · 5 comments
Closed
5 of 6 tasks
Labels
[Block] Latest Posts Affects the Latest Posts Block [Block] Query Loop Affects the Query Loop Block Needs Dev Ready for, and needs developer efforts [Type] Overview Comprehensive, high level view of an area of focus often with multiple tracking issues

Comments

@draganescu
Copy link
Contributor

draganescu commented Aug 12, 2020

Advances #20046

Introduction

Lists are the cornerstone of content consumption on the web: listicles, timelines, feeds, categories, search results, you name it. A block that provides a comprehensive way to show content as a list is, therefore, a cornerstone of site building with blocks.

The LatestPosts block is one of the first blocks shipped in Gutenberg. In the time since its envisioning until today, the block outgrew its name and is no longer a list of latest posts, but also a list of oldest posts, a list of alphabetical posts, a list of posts by a certain author and/or in a certain category.

However, a new and better option to create lists has been added as part of the effort to develop the Site editor and enable full site editing: the Query block. This one, as the name suggests, is a block that allows to customize, potentially, every aspect of a WP_Query and retrieve a list of content items for display.

The difference between the Query block and the LatestPosts block resides not so much in the query that one can make, nor in the presentation of the list, but in the fact that the Query block leverages the new BlockContextProvider and BlockPreview to enable inline editing of content, directly in the list.

Since we want to get as close as possible to a perfect WYSIWYG experience across the board in WordPress, it’s obvious that the technology or path that enables this is always going to be the future.

Actions to implement the LatestPosts block as a variation of the Query block

a) Port all the current functionality in the LatestPosts block to the Query block

b) Add new features to the Query block instead of the LP block

@draganescu draganescu added Needs Dev Ready for, and needs developer efforts [Block] Latest Posts Affects the Latest Posts Block [Type] Overview Comprehensive, high level view of an area of focus often with multiple tracking issues labels Aug 12, 2020
@ntsekouras ntsekouras added the [Block] Query Loop Affects the Query Loop Block label Aug 21, 2020
@GlennMartin1
Copy link

Any status update on this?

@draganescu
Copy link
Contributor Author

There is a lot of progress happening on the Query block (thanks to @ntsekouras) but I believe we're still a while to support everything LatestPosts supports and turn it into a variation.

@ntsekouras
Copy link
Contributor

Actually yes, there are still things to be implemented and decisions to be made, including design...

@ntsekouras
Copy link
Contributor

@draganescu do you think we can close this one since we have the Query block variation List Posts and grid now?

From this issue we don't have all the proposed enhancements for Latest Posts that is tracked in a separate issue..

@draganescu
Copy link
Contributor Author

Absolutely!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Latest Posts Affects the Latest Posts Block [Block] Query Loop Affects the Query Loop Block Needs Dev Ready for, and needs developer efforts [Type] Overview Comprehensive, high level view of an area of focus often with multiple tracking issues
Projects
None yet
Development

No branches or pull requests

3 participants