Instructors shortcode pagination
-
Hey there!
The theme is great however I have encountered an issue.
I`m trying to paginate the results from the lms_instructors shortcode.
It looks like this , I have set pagination to ‘yes’ ,but there is not pagination.
<blockquote>
[lms_instructors role=”instructor” style=”grid-2″ column=”1″ num_fetch=”31231312″ num_excerpt=”20″ thumbnail_size=”full” pagination=”yes”]
</blockquote>I located the code in shortcode.php file:
add_shortcode('lms_instructors', 'gdlr_lms_instructors_shortcode'); function gdlr_lms_instructors_shortcode( $atts ){ extract( shortcode_atts(array('role' => '', 'style' => 'grid', 'column'=>'3', 'num_fetch'=>6, 'thumbnail_size'=>'full', 'num_excerpt'=>'20', 'pagination'=>'yes'), $atts) ); $settings = array( 'role'=>$role, 'instructor-style'=>$style, 'instructor-size'=>$column, 'num-fetch'=>$num_fetch, 'num-excerpt'=>$num_excerpt, 'thumbnail-size'=>$thumbnail_size, 'instructor-type'=>'multiple', 'instructor-layout'=>'fitRows' ); //$settings['pagination'] = ($pagination=='yes')? 'enable': 'disable'; ob_start(); gdlr_lms_print_instructor_item($settings); $ret = ob_get_contents(); ob_end_clean(); return $ret; }
As you can see the pagination is commented, even if I uncomment it it wont work.Thanks for the help.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Instructors shortcode pagination’ is closed to new replies.