Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $lesson = new LLMS_Lesson( get_the_ID() );
- // previous
- $prev_id = $lesson->get_previous_lesson();
- if ( $prev_id ) {
- $prev_section = new LLMS_Section( $prev_id );
- echo get_the_title( $prev_section->id );
- }
- $next_id = $lesson->get_next_lesson();
- if ( $next_id ) {
- $next_section = new LLMS_Section( $next_id );
- echo get_the_title( $next_section->id );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement