Title: Sorting products
Last modified: June 24, 2021

---

# Sorting products

 *  Resolved [test0099](https://wordpress.org/support/users/test0099/)
 * (@test0099)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/sorting-products-3/)
 * Hi,
    I am using this plugin to create a marketplace for my site in which I have
   4 categories of products and I want to sort products in such a manner that first,
   all the recommended/featured products should display which are sorted based on
   the number of reviews on those products, so it’s like featured product with most
   number of reviews should appear first. Please help me to achieve the same. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [con](https://wordpress.org/support/users/conschneider/)
 * (@conschneider)
 * Engineer
 * [4 years, 10 months ago](https://wordpress.org/support/topic/sorting-products-3/#post-14592627)
 * Hi there,
 * > based on the number of reviews on those products, so it’s like featured product
   > with most number of reviews should appear first.
 * WooCommerce has a built in shortcode `[top_rated_products]` you can use to display
   the best rated products. It can be fine tuned as well. Here is the documentation:
   [https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-9](https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-9)
 * Does that go into the right direction?
 *  Thread Starter [test0099](https://wordpress.org/support/users/test0099/)
 * (@test0099)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/sorting-products-3/#post-14592735)
 * Hey,
    I want to show all featured/recommended products first and then non recommended
   ones And among the two groups, recom and non-recom all the products should be
   sorted based on number of reviews they have. Please try to help me in this context.
   Thanks
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/sorting-products-3/#post-14594403)
 * Hi [@test0099](https://wordpress.org/support/users/test0099/),
 * For featured products you can use the `[featured_products]` shortcode. There 
   isn’t a non-recommended shortcode but you can use a multiple shortcode among 
   the ones listed here: [https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-9](https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-9)
   or use `[products]` shortcode and filter by post ID of the product.
 * With regard to sorting the products by the number of reviews I’d recommend taking
   a look at this plugin which enables sorting by review count: [https://wordpress.org/plugins/woocommerce-extra-product-sorting-options/](https://wordpress.org/plugins/woocommerce-extra-product-sorting-options/)
 * If that doesn’t help, you might need [to customize your own function](https://woocommerce.com/customizations/.)
   to sort products this way.
 * Thanks.
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/sorting-products-3/#post-14617731)
 * Hi there,
 * It’s been a while since we last heard back from you, I’m going to mark this thread
   as resolved.
 * Hopefully, the above information helped you out! If you have further questions,
   please feel free to open a new topic.
 * Cheers.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Sorting products’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [featured](https://wordpress.org/support/topic-tag/featured/)
 * [products](https://wordpress.org/support/topic-tag/products/)
 * [sort](https://wordpress.org/support/topic-tag/sort/)

 * 4 replies
 * 3 participants
 * Last reply from: [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/sorting-products-3/#post-14617731)
 * Status: resolved