Hi everyone,
I need to show the bio of the instructor in course page.
Please advise
You can add an Instructor widget on the course sidebar.
Go to WP Admin->Appearance->Widgets
Let us know if this helps.
Hi,
Thanks for your response. I try to create some single-course page for my platform (use wplm child one course page layout). For that reason in the bottom of the page want to put the information about the instructor: avatar, bio and button for buy the course.
http://cursuri.mindevolution.ro/course/nlp-practitioner/
In this moment can call the avatar but not the field: informatii biografice
http://cursuri.mindevolution.ro/membrii/cornelmarcu/
Please advice.
Are you modifying the single-course.php file ?
If you want to use the code to display the instructor info then please use this code :
function show_the_bio(){
global $post;
$field = 'Bio';
$instructor_id = get_post_field( 'post_author', $post->ID );
$field=bp_get_profile_field_data('field='.$field.'&user_id='.$instructor_id);
echo $field;
}
Now use this function like to show the bio field .
Please note that here bio is a field name that you have provided in the extended profile field .