LearnPress Course page showing 1 course only
-
Hi,
in
templates/archive-course.php
I don’t want to use LearnPress Ajax loading on the course page that’s why I just removed this condition:if ( lp_is_archive_course_load_via_api() ) { echo '<div class="lp-archive-course-skeleton" style="width:100%">'; echo lp_skeleton_animation_html( 10, 'random', 'height:20px', 'width:100%' ); echo '</div>'; } else { }
and keep only
if ( have_posts() ) { while ( have_posts() ) : the_post(); learn_press_get_template_part( 'content', 'course' ); endwhile; } else { LP()->template( 'course' )->no_courses_found(); }
this part.
Now it’s showing only one course.
Would you please help me to fix this!
Regards
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘LearnPress Course page showing 1 course only’ is closed to new replies.