A simple, powerful and independent e-commerce platform.
Sell anything with ease.

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', 'cc_custom_default_order');

function cc_custom_default_order() {

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

}
	
View Raw Code ID: 91046