[Woocommerce] Change Order of Catalog page to Ascending
-
So I had this worked out last night.. I thought and for some reason went to check it this morning and it no longer works.. Can anyone chime in on where I’m going wrong? Thx
add_filter('woocommerce_get_catalog_ordering_args', 'am_woocommerce_catalog_orderby'); function am_woocommerce_catalog_orderby( $args ) { $args['date'] = 'meta_value_num'; $args['order'] = 'ASC'; return $args; }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Woocommerce] Change Order of Catalog page to Ascending’ is closed to new replies.