WooCommerce has products called Featured Products which are products what become featured when they are starred in the WP Admin dashboard.


Here is how you can display them.


Featured Products Shortcode

Display WooCommerce Featured Products via shortcode like so:

[featured_products per_page="9" columns="3"]

Other parameters you can use in the shortcode are ‘orderby‘ and ‘order‘.

Featured Products Custom Loop

Display WooCommerce Featured Products via a custom loop like so:

Above I am creating a loop with an infinite amount of featured products by setting the value ‘-1’ to the ‘post_per_page’ key, in the loop markup output  I am using some regular WooCommerce css classes to the display of the data and my own data structure of the parts of the product I want to display.

Featured Products Shortcode Custom Loop

Display WooCommerce Featured Products via a shortcode custom loop like so:

Above is pretty much the same as the previous loop – this time shortcode is created which needs to be added to an area to display it [[woo_featured]] and  only 3 products will show.

Also commented out is …

//  wc_get_template_part( 'content', 'product' );

You could use this instead of the custom output to render the default WooCommerce output.


  1. khalid on March 3, 2019 at 10:02 am

    hello there,
    thank you for your work, the code work prefect however, i am trying to get only 2 columns next to each other. i tried changing columns-3 to columns-2 but the products not next to each other.
    so could you please help me with this.

    Thanks in advance.

  2. T on June 12, 2018 at 2:16 am

    I didn’t find this helpful. I need to know how to make a link to all featured products – that is all. I get that the link should have a “?” followed by a parameter that specifies featured. This is all I want. Not this. Can you help?

Leave a Comment