Woocommerce – Changing the order of the upsell products [closed]
Getting too long for a comment, sooo in my super simple test overriding up-sells.php on a fresh WC install with a WP_Query, I can change the orderby and order parameters and the products display in the order of my array of product ids: $meta_query = WC()->query->get_meta_query(); $my_upsells = [171, 170, 172]; $args = array( ‘post_type’ … Read more