Created
December 21, 2020 07:14
-
-
Save unikforceit/0afd3027af74c6c9a6815626a5150256 to your computer and use it in GitHub Desktop.
WordPress plugins LMS tutor all instructor show in the page as loop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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