Skip to content

Instantly share code, notes, and snippets.

@unikforceit
Created December 21, 2020 07:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unikforceit/0afd3027af74c6c9a6815626a5150256 to your computer and use it in GitHub Desktop.
Save unikforceit/0afd3027af74c6c9a6815626a5150256 to your computer and use it in GitHub Desktop.
WordPress plugins LMS tutor all instructor show in the page as loop.
<?php
$instructors = get_users('role=tutor_instructor');
foreach ($instructors as $author) {
$instructor_name = '<h3 class="name">'.$author->display_name.'</h3>';
$profile_image = '<div class="auth-avatar"><img src="'.get_avatar_url( $author->ID ).'"></div>';
$output.= '
<div class="instructors_loop">
<div class="inner">
'.$profile_image.'
'.$instructor_name.'
</div>
</div>
';
}
echo $output;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment