Order products by price, date or title

Set the default ordering on the category page. You can choose to order your products by the price, date or title.

		/**
 * Order products by price, date or title
 */

add_filter('woocommerce_default_catalog_orderby', 'sc_woo_custom_default_order');

function sc_woo_custom_default_order() {

  return 'date'; // Can also use title and price

}
	
View Raw Code ID: 91046