get instructor by course id

Home Forums Legacy Support Support queries Child Themes get instructor by course id

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32572
    svruiz
    Participant
    How to get instructor id by $courseid? Many thanks, Sergio
    #33489
    svruiz
    Participant
    Hi! Please, anyone knows how to get instructor id by $courseid? Many thanks, Sergio
    #33504
    Anshuman Sahu
    Keymaster
    Please check this function for this  " bp_course_get_instructor "  in vibe course module plugin -> includes folder -> bp-course template.php file . If you just want the instructor id then try this function : get_course_inst_id($course_id){ if(empty($course_id)) $course_id=get_the_ID(); $post_tmp= get_post($course_id) return $post_tmp->post_author; }
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘get instructor by course id’ is closed to new replies.