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: consider to don't list the post where the block is used #2009

Closed
afercia opened this issue Jul 25, 2017 · 5 comments
Closed

Latest posts: consider to don't list the post where the block is used #2009

afercia opened this issue Jul 25, 2017 · 5 comments
Labels
[Feature] Blocks Overall functionality of blocks [Type] Enhancement A suggestion for improvement.

Comments

@afercia
Copy link
Contributor

afercia commented Jul 25, 2017

When inserting a "Latest posts" block in a post, it displays also the "host" post if it's recent enough:

screen shot 2017-07-25 at 20 18 11

This doesn't seem particularly useful. While the classic Recent Posts widget is typically used in a sidebar and thus it's correct it displays all the recent posts, the Latest Posts block (aside: why it has a different name: Recent vs. Latest?) is used in the post content and should exclude the "host" post when this is in the recent ones.

Additionally, when inserting the Latest Posts block in Gutenberg:

  • create a new post
  • don't save the post yet
  • insert a Latest Posts block
  • the "host" post is not included (because it's still a draft):

screen shot 2017-07-25 at 20 19 02

  • save
  • refresh the page
  • now the host posts is listed

This mix of different behaviors can be confusing for users and should probably be improved a bit.

@youknowriad
Copy link
Contributor

youknowriad commented Jul 25, 2017

If we were to add this feature, we should consider the fact that this block could be used in a page or a site builder later (the same block) and there's no host post.

@nylen
Copy link
Member

nylen commented Jul 26, 2017

I think the way forward here is to support some or all of the REST API's query parameters and automatically include ?exclude=ID for the current post ID.

@westonruter
Copy link
Member

I think the way forward here is to support some or all of the REST API's query parameters

See comments around #1594 (comment)

@karmatosed karmatosed added this to the Beta, Needs to happen milestone Sep 25, 2017
@karmatosed karmatosed added the [Type] Enhancement A suggestion for improvement. label Sep 25, 2017
@mtias mtias added the [Feature] Blocks Overall functionality of blocks label Nov 20, 2017
@jasmussen
Copy link
Contributor

To me this sounds like a perfect toggle to have in Block Settings.

Something like:

Omit most recent post       [ on/off ]

?

@mtias mtias modified the milestones: Merge Proposal, Bonus Features Mar 6, 2018
@karmatosed
Copy link
Member

Let's close this one for now. It could be something we add later but that would be after phase one. It may also be something people extend.

ceyhun pushed a commit that referenced this issue Apr 22, 2020
…m-sheet-on-submit

Dismiss bottom sheet on return key submit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

7 participants