Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Product Query: query results are different from shortcodes/PHP query loops #7746

Closed
Tracked by #42616
dinhtungdu opened this issue Nov 25, 2022 · 0 comments · Fixed by #7951
Closed
Tracked by #42616

Product Query: query results are different from shortcodes/PHP query loops #7746

dinhtungdu opened this issue Nov 25, 2022 · 0 comments · Fixed by #7951
Assignees
Labels
block-type: product-query Issues related to/affecting all product-query variations. type: bug The issue/PR concerns a confirmed bug.

Comments

@dinhtungdu
Copy link
Member

dinhtungdu commented Nov 25, 2022

To reproduce

Steps to reproduce the behavior:

  1. Use the sample product data provided by WooCommerce.
  2. On a new page, add the Product Query block and [recent_products] shortcode block.
  3. Change the layout of the Product Query to 4 products per row x 2 rows.
  4. Save the page and view it in a new tab.
  5. See the products inside the Product Query block and the Recent Products shortcode are different.
  6. See the products inside the Product Query block are different between the front end and the editor.
  7. See the products inside the editor preview of the Product Query block and the Recent Products shortcode are the same.

Expected behavior

The query results of the Product Query block should be the same between the editor and front end, as well as the same as the shortcodes/query loops.

Screenshots

image

@dinhtungdu dinhtungdu added type: bug The issue/PR concerns a confirmed bug. block-type: product-query Issues related to/affecting all product-query variations. labels Nov 25, 2022
@dinhtungdu dinhtungdu self-assigned this Nov 25, 2022
@dinhtungdu dinhtungdu changed the title Product Query: query results are different from shortcodes Product Query: query results are different from shortcodes/PHP query loops Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block-type: product-query Issues related to/affecting all product-query variations. type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
1 participant