Automattic / newspack-blocks

Gutenberg blocks for the Newspack project.
207 stars 43 forks source link

Blog Posts Block: Cannot add post by "Authors" display settings #1069

Open renata-franco opened 2 years ago

renata-franco commented 2 years ago

Quick summary

When using the Blog Posts Block, if you want to choose to display posts by any of the authors on the website, it just does not show anything.

Here is what that looks like:

Screen Capture on 2022-02-06 at 12-31-51

Steps to reproduce

  1. Create a new Page/Post.
  2. Add the Blog Posts block.
  3. Write the beginning of the name of an author on the right-side column.
  4. No clickable option appears.

What you expected to happen

The authors with the text input to appear.

For example, if you write "re" in the Authors field, it should show all the Authors in that website whose name starts or has "re" on their name.

What actually happened

Nothing appears. No options to click on. See GIF above.

Context

Reported in this ticket: 4752350-zd-woothemes

Was able to replicate it on Simple and AT test sites.

Simple, Atomic or both?

Simple, Atomic

Theme-specific issue?

No response

Browser, operating system and other notes

No response

Reproducibility

Consistent

Severity

Some (< 50%)

Available workarounds?

Yes, easy to implement

Workaround details

Users can select "Choose Specific Posts" and decide on which posts to include from an author.

Markup 2022-02-06 at 12 28 46

vipulpradhan commented 2 years ago

User report: 4806055-zen Another workaround in addition to above, is to use the Latest Posts Block. Suggested both workarounds to the user.

kimerlin81 commented 2 years ago

@renata-franco Thanks for submitting this bug report. I was able to reproduce this on my test sites. This issue has now been triaged.

yansern commented 2 years ago

It seems likely that an incorrect API endpoint was used to search for Authors.

Also, transferring this issue to Automattic/newspack-blocks.

image
msilbers commented 2 years ago

reported in 35682901-hc

DavidSaladu commented 2 years ago

Reproduced in 5289152-zd-woothemes, provided for now the latest post workaround.

ariel-maidana commented 2 years ago

5289152-zd-woothemes The user asks to be informed when this issue is fixed.

pauljacobson commented 1 year ago

I have another report of this issue in 5879025-zen

I tested this using the Pictorico, Dalston, and Blank Canvas themes.

https://user-images.githubusercontent.com/2912202/213907403-ddf2c592-4975-4fe2-9d88-d50008d85372.mp4

pauljacobson commented 1 year ago

Another workaround is for users to try adding tags with their names to their posts, and then add the list of tags to the Tags filter in the Blog Posts Block instead of authors' names in the Authors filter.

sophiegyo commented 1 year ago

We've had reports that now the Blog Posts block lets you choose an author but displays "no posts found" - I'm guessing it's related to this?

Report from: https://wordpress.com/forums/topic/cant-filter-by-author-when-using-blog-posts-block-now/?view=all

I was able to replicate on both a Simple wpcom site and an Atomic site. Both sites definitely do have posts to display.

Simple:

image

Atomic:

image
Gustavo-Hilario commented 1 year ago

Another report here: 5968193-zen

As @sophiegyo showed, the Blog Post block is returning "Sorry, no posts were found" when filtering the posts by the author's name.

thekingsprojects commented 1 year ago

Another case here: 41202640-hc

In this case, the user was trying to display pages (not posts) by a certain author, but we got the "Sorry, no posts were found" when trying to select the correct author.

essleeung commented 1 year ago

Another case here: 41912132-hc Author could be added, but it showed no posts found. Used lastest posts block as workaround.