I have a learndash site in WordPress with many courses. I want to display all the enrolled courses in a unorderd list to the user. I have a list which shows me all the courses, but not the current enrolled courses.
mycourses => true in the arguments is not working. My code to get all the courses:
$args= array('post_type' => 'sfwd-courses',
'post_status' => 'publish',
'order' => 'ASC',
'orderby' => 'ID',
'mycourses' => 'true'
);
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
echo the_title();
endwhile;
I don't like using the default shortcodes..
I don't understand how I could make the relation to the enrolled part. I hope someone with Learndash expierence could help.