Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon How do I ensure the best-selling products are dynamically updated on my page


How do I ensure the best-selling products are dynamically updated on my page


To ensure the best-selling products are dynamically updated on your WooCommerce shop page, you can use the `[products]` shortcode with specific parameters. Here's how to do it:

1. Use the `orderby="popularity"` parameter to sort the products by their sales popularity[1][2][4].

2. Set the `limit` parameter to control the number of products displayed, for example `limit="8"` for 8 products[1][4].

3. Optionally, set the `columns` parameter to specify the number of columns to display the products in, for example `columns="4"`[1][4].

4. Use the `order="DESC"` parameter to display the products from highest to lowest sales[4].

Here's the full shortcode:


[products limit="8" columns="4" orderby="popularity" order="DESC"]

This will display the 8 best-selling products in a 4-column grid, sorted from highest to lowest sales. The products will be dynamically updated as sales change over time[1][2][4].

Alternatively, you can use the more specific `[best_selling_products]` shortcode:


[best_selling_products limit="8" columns="4"]

This shortcode directly targets best-selling products and will automatically update the display as sales change[4].

By using these parameters and shortcodes, you can ensure the best-selling products on your WooCommerce shop page are always current and accurately reflect the most popular items in your store.

Citations:
[1] https://wordpress.org/support/topic/best-selling-products-update/
[2] https://wordpress.org/plugins/dynamic-blocks-builder/
[3] https://crocoblock.com/knowledge-base/tips-and-tricks/displaying-best-seller-products-of-woocommerce/
[4] https://generatepress.com/forums/topic/how-to-add-best-seller-products-under-archive-pages-in-woocommerce/
[5] https://www.commercegurus.com/woocommerce-shortcodes/