Add the following code to your theme’s function.php file, or a functionality plugin to add Sort Order to WooCommerce Page Attributes.
/** Sort products by menu order ********/
function be_products_query( $query ) {
if( $query->is_main_query() && !is_admin() && ( is_post_type_archive( 'products' ) || is_tax( array( 'products_category', 'products_tag' ) ) ) ) {
$query->set( 'posts_per_page', '25' );
$query->set( 'orderby', 'menu_order' );
$query->set( 'order', 'ASC' );
}
}
add_action( 'pre_get_posts', 'be_products_query' );
Share Your Two Cents