This article will show you how to arrange courses on a single course page. First, you need to install the Post Types Order plugin.
You can download the plugin here: https://wordpress.org/plugins/post-types-order/
Please install and activate the plugin. You can go to Settings -> Post Types Order -> turn on show and yes for all fields.
Next, you need to add custom code to your child theme’s functions.php file. You can go to Appearance -> Theme File Editor -> Choose Theme Functions of Child theme -> add code
add_filter( 'learn-press/courses/handle_params_for_query_courses', function ( $filter, $param ) {
global $wp_query;
if ( ! isset( $param['order_by'] ) ) {
$wp_order_by = 'menu_order';
$pattern = '/wp_posts./';
$filter->order_by = preg_replace( $pattern, '', $wp_order_by );
}
return $filter;
}, 10, 2 );
You can see this image:
Finally, going back to the course tab of LearnPress, you can drag and drop to change the course order.
You can see the order the courses are arranged on the archive course page.