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 block: Should exclude current post #14356
Comments
I think this is more complex as it depends on the context. I would agree for the post type post itself, but it might not be expected for the page. In general, it's a bit strange in the context of the post to include the latest posts without some advanced filtering :) |
This has been my personal use case as well. Presumably a Latest Posts block would be used:
In all of these, a user shouldn't run into this strange reflection. In any case, I would classify this as a possible enhancement rather than a bug, as the block is conforming to its intended behaviour. |
I don't see it as a bug either. Blog posts have an official publish date and that date generally forms the criteria for display. Pages don't have a publish date and are meant for static, timeless content. So it doesn't make sense to me to include a "latest posts" widget in a blog post because if the blog post was dated 6 months ago, should the "latest posts" widget show the latest posts as at 6 months ago or the latest posts while you're staring at the screen? |
People do strange things, who knows. I can see someone using it as a bit of a substitute for Related Posts and so on. Especially since we don't yet have full-page templating with blocks. If this block isn't intended to be used on a post, should it be available in the editor in the first place? Maybe it should only be available for pages (or other non-post types). |
I think it'd be lovely to have that as an option. :) Take your typical pro-blogger site for example. They might have a big fat featured post at the top -- or even a slider with several featured posts -- then posts listed underneath. You'd want an option to exclude things. |
The option would be really useful, i expected the option to be there, using it to direct users to latest post if they dont want to keep reading this post feels like a common enough thing, else you need to after a few more posts have been published then edit the old post to add in the latest posts section which seems awkward. |
+1 to fix this |
Describe the bug
If you add the Latest Posts block to a post that is, itself, one of your latest posts, that post will be listed in the block. Very meta but not that useful.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Latest Posts block should exclude the current post from the list.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: