Title: Instructors shortcode pagination
Last modified: September 1, 2016

---

# Instructors shortcode pagination

 *  Resolved [nikksan](https://wordpress.org/support/users/nikksan/)
 * (@nikksan)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/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)

 *  Theme Author [ThemeAWESOME](https://wordpress.org/support/users/tsquez/)
 * (@tsquez)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/instructors-shortcode-pagination/#post-7505329)
 * Hi there,
 * Glad you like the theme, however this falls outside of the scope of support I
   provide for WP-Forge.
 * I do not know what the lms_instructors_short code is as WP-Forge does not ship
   with any shortcodes.
 * I apologize for any inconvenience this may cause.
 *  Thread Starter [nikksan](https://wordpress.org/support/users/nikksan/)
 * (@nikksan)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/instructors-shortcode-pagination/#post-7505585)
 * No problem , I fixed it.
    Steps: 1.Uncomment this from shortcode.php
 * >  $settings[‘pagination’] = ($pagination==’yes’)? ‘enable’: ‘disable’;
 * 2.Open instructor-item.php and replace
 * > echo gdlr_lms_get_pagination($query->max_num_pages, $paged);
 * with:
 * >  $totalInstructors = count(get_users(array(‘role’ => ‘instructor’)));
   >  $totalPageNumber
   > = ceil($totalInstructors / $args[‘number’]);
   >  echo gdlr_lms_get_pagination($totalPageNumber, $paged);
   >  //echo gdlr_lms_get_pagination(
   > $query->max_num_pages, $paged);
 *  Theme Author [ThemeAWESOME](https://wordpress.org/support/users/tsquez/)
 * (@tsquez)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/instructors-shortcode-pagination/#post-7505594)
 * Hey there,
 * Glad you got it fixed.
 * I believe this is part of the Learndash plugin am I correct?
 * I am not affiliated with them in any way, they just use WP-Forge on their demo
   site.
 * Still, glad you got it worked out and who knows, this may help someone 😉
 * If possible, please leave a rating and review of wp-forge and let everyone know
   what you think of the theme.
 * Thanks again.
 *  Thread Starter [nikksan](https://wordpress.org/support/users/nikksan/)
 * (@nikksan)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/instructors-shortcode-pagination/#post-7505595)
 * Yup , thats the plugin.
 *  Theme Author [ThemeAWESOME](https://wordpress.org/support/users/tsquez/)
 * (@tsquez)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/instructors-shortcode-pagination/#post-7505596)
 * Yeah, I just purchased the plugin. I am going to be creating a commercial theme
   based on wp-forge for the plugin.
 * If possible, email me any ideas you would like to see in a theme like this and
   make sure you sign up for the newsletter on the site to be notified when it’s
   released.
 * Thanks again.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Instructors shortcode pagination’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/wp-forge/6.5.3.1/screenshot.png)
 * WP-Forge
 * [Support Threads](https://wordpress.org/support/theme/wp-forge/)
 * [Active Topics](https://wordpress.org/support/theme/wp-forge/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/wp-forge/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/wp-forge/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [ThemeAWESOME](https://wordpress.org/support/users/tsquez/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/instructors-shortcode-pagination/#post-7505596)
 * Status: resolved