I’ve been successfully using the following shortcode in WooCommerce 2.x to display 5 random products using the text widget:

[recent_products category="" per_page="5" columns="5" orderby="rand" order="asc"]

After upgrading WooCommerce to 3.0 I’ve noticed that it now outputs the same bunch of “random” products with every page refresh.

What can be wrong with the shortcode and is there a way to change random products shown by WooCommerce via recent_products shortcode every time the page loads?

Read more here: Does WooCommerce 3.0 still able to display random products via recent_products shortcode?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: