Thread Starter
dpatty
(@dpatty)
Hi and thanks for the response,
this didn’t really solve the issue but worked as a workaround. By changing the above filter to this:
add_filter( 'woocommerce_default_catalog_orderby', function ( $default ) {
if ( ! is_shop() ) {
return 'date-asc';
}
return $default;
} );
Thread Starter
dpatty
(@dpatty)
Sorry it’s not a widget. It’s part of Storefront’s homepage template. It’s the storefront_recent_products:
<?php
/**
* Functions hooked in to homepage action
*
* @hooked storefront_homepage_content - 10
* @hooked storefront_product_categories - 20
* @hooked storefront_recent_products - 30
* @hooked storefront_featured_products - 40
* @hooked storefront_popular_products - 50
* @hooked storefront_on_sale_products - 60
* @hooked storefront_best_selling_products - 70
*/
do_action( 'homepage' );
?>
-
This reply was modified 7 years, 8 months ago by dpatty.
-
This reply was modified 7 years, 8 months ago by dpatty.
-
This reply was modified 7 years, 8 months ago by dpatty.