Closed rakshitwesley closed 1 month ago
I can replicate this on a site with products and categories.
https://github.com/Automattic/wp-calypso/assets/13706336/989b6036-063b-4990-a231-cc8e93b350b8
Triaged
Can you provide a bit more details on how this was tested - what page or template these blocks were inserted into?
I was not able to replicate this issue. Here's what I did (on an Atomic site):
To display all categories/ product categories outside of the loop context Categories List and Product Categories List blocks should be used instead.
Please let me know if this makes sense or if I missed something.
What you say makes sense @alaczek, those blocks can only be used insider a query loop block. We could question why users are allowed to add them elsewhere but that's a different story.
On a new page, add either of these two blocks.
Looking at this part of the "how to replicate list", it sounds like this was a misunderstanding.
I think we can go ahead and close this one.
Ok, thanks for following up!
Quick summary
Both the "Categories" and "Product Categories" blocks are not functioning correctly when added to a site; they display "No categories."
Steps to reproduce
What you expected to happen
Expected relevant categories to be displayed
What actually happened
It displays "No categories"![GRkLAR.png](https://github.com/Automattic/wp-calypso/assets/95758851/13892098-0067-4798-9a6b-894c62d7a036)
Impact
Most (> 50%)
Available workarounds?
Yes, easy to implement
Platform (Simple and/or Atomic)
Simple, Atomic
Logs or notes
Tested with both classic and site editor themes, and the results were the same.
Workaround: Use categories list block.