here: https ://wordpress.org/support/topic/sort-order-is-not-working-for-custom-post-types/.
sorting is by menu_order , which means manual and if a manual order is not set, ...
We are current on plugins, WooCommerce Extra Product Sorting
This works, but I would like to custom sort the results by 'menu_order'. But this doesn't work for 'post_type' => 'product_variation' . Probably ...
date – The date the product was published. id – The post ID of the product. menu_order – The Menu Order, if set
The terms are ordered by id I guess, in the same order as in the backend. I had this problem before, but then I added 'menu_order' => false and it ...
menu_order doesn't mean the order in which it is used in any given custom menu . It means order by the "Order" attribute as entered in this box:.
I would like to make that custom sorting option as the default sorting option keeping the default woocommerce option (by menu order) as a ...
Remember if you do not set a value in menu order it sets it to 0. So any posts ...
I couldn't make Andriy Kovalenko code to work, don't know if it's my fault, but anyway, this code seems to be working: