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 block: Should exclude current post #14356

Open
codebykat opened this issue Mar 9, 2019 · 7 comments
Open

Latest Posts block: Should exclude current post #14356

codebykat opened this issue Mar 9, 2019 · 7 comments
Labels
[Block] Latest Posts Affects the Latest Posts Block [Type] Enhancement A suggestion for improvement.

Comments

@codebykat
Copy link
Contributor

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:

  1. Create a new post
  2. Add the latest posts block
  3. Publish the post
  4. Note that the post lists itself as a latest post

Expected behavior
The Latest Posts block should exclude the current post from the list.

Screenshots
Screen Shot 2019-03-09 at 10 53 15 AM
Screen Shot 2019-03-09 at 10 53 27 AM

Desktop (please complete the following information):

  • OS: OSX
  • Browser: Firefox
@codebykat codebykat added [Type] Bug An existing feature does not function as intended [Block] Latest Posts Affects the Latest Posts Block labels Mar 9, 2019
@gziolo
Copy link
Member

gziolo commented Mar 11, 2019

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 :)

@mcsf
Copy link
Contributor

mcsf commented Mar 11, 2019

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 a static page linking to blog posts.
  • In a page or post linking to a specific taxonomy.
  • (coming soon) In a widget-like area around the main content, thus detached from regular posts and pages.

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.

@mcsf mcsf added [Type] Enhancement A suggestion for improvement. and removed [Type] Bug An existing feature does not function as intended labels Mar 11, 2019
@lutrov
Copy link

lutrov commented Apr 5, 2019

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?

@codebykat
Copy link
Contributor Author

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).

@supernovia
Copy link

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.

@mat-cable
Copy link

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.

@masteradhoc
Copy link
Contributor

+1 to fix this

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 [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

7 participants