This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Reviews by Category block showing reviews from ALL categories instead of the selected category #6347
Labels
block: reviews by category
Issues related to the Reviews by Category block.
type: bug
The issue/PR concerns a confirmed bug.
Describe the bug
When using the Reviews by Category Block:
To reproduce
Pre-requisite: If you have no product reviews, add reviews to at least two products in different categories. Make sure that these products don't share categories as well.
Create a new page from WP-Admin → Pages
Add the Reviews by Category block to the page
Select only one product category
Check how the block renders reviews on the edit page: it works as expected and only shows reviews from the selected category
Publish the page and check how it renders reviews: it works not as expected, and shows reviews from other categories not selected
Expected behavior
When the page is published, the Reviews by Category block should only show categories from the selected categories. Presently, it pulls reviews from categories not selected.
Environment
WordPress (please complete the following information):
WordPress version: 5.9.3
WooCommerce version: 6.4.1
WooCommerce REST API package: 6.4.1
WooCommerce Blocks package: 7.5.0
Desktop (please complete the following information):
Additional context
Originally reported in 5171774-zd-woothemes
The text was updated successfully, but these errors were encountered: