Home › Forums › Legacy Support › 4.0 Bugs & Issues › sow instructor name on course card
Tagged: course card, Instructor Name
- This topic has 4 replies, 3 voices, and was last updated 4 years ago by Anshuman Sahu.
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
November 24, 2020 at 8:48 am #326189prateekgupta2009Participanti want to show instructor name instead of date on my course card: https://prnt.sc/voylww Right now i am using below mentioned code for showing the date, instead i want to show only the name of Instructor (No Hyperlink) on the black strip. $return .= apply_filters('vibe_thumb_date',''. get_the_time('F d,Y').''.'',$featured_style); It should show like "By Instructor Name"November 25, 2020 at 9:07 am #326394VeronicaModeratorhi can you please the entire code that you are using so I can check the sameNovember 25, 2020 at 9:16 am #326397VeronicaModeratorhi can you please share the exact (FULL) code that you are using so i can check the sameNovember 25, 2020 at 5:05 pm #326489prateekgupta2009Participantthis file is in Vibe Custom types plugin-->includes--> featured.php Look for case Course 3: Modified Code: case 'course3':
instead of get_the_modified_time i want to show the Instructor name on course card. File URL: https://filebin.net/qlskmpnw4z4cpdxi$wwyl = mb_strimwidth(get_post_meta($custom_post->ID,'vibe_what_you_will_learn',true) , 0 , 100, '...' ); $vu = get_post_meta($custom_post->ID,'vibe-unit',true); $vd = get_post_meta($custom_post->ID,'vibe-duration',true); $title = mb_strimwidth($custom_post->post_title , 0 , 45, '...' ); $wii = 'What it includes?<ul><li> 365 Days Of Course Access</li> <li> Videos, Assignments & Quiz</li><li> High Quality Recorded Lectures</li><li> Certificate of Completion</li></ul>'; $dte = get_the_modified_time('F d,Y'); $return .='ID.'">'; $return .=''.$title.''.$dte.''.'What you will learn?'.$wwyl.''.$wii.''; $return .='<a>ID).'" class="course_button full button">TAKE THIS COURSE</a>'; $return .=''.bp_course_get_course_credits().''; $return .=''; $return .= '<a>ID).'" >'.get_the_post_thumbnail().'</a>' ; //. apply_filters('vibe_thumb_featured_image',featured_component($custom_post->ID,$cols),$featured_style); $return .= apply_filters('vibe_thumb_date',''. get_the_modified_time('F d,Y').''.'',$featured_style); $return .='</div>'; $return .= ''; // $return .= $wwyl; $return .= ''; $reviews = get_post_meta($custom_post->ID,'average_rating',true); $students = get_post_meta($custom_post->ID,'vibe_students',true); $return .=''.$students.' '; $return .=''; if(function_exists('bp_course_display_rating')){ $return .= bp_course_display_rating($reviews); }else{ for($i=1;$i= 1){ $return .= ''; }elseif(($reviews = 0.4 ) ){ $return .= ''; }else{ $return .= ''; } $reviews--; } } $return .= ''; $return .= apply_filters('vibe_thumb_heading', '<h4 class="block_title"><a>ID).'" title="'.$custom_post->post_title.'">'.mb_strimwidth($custom_post->post_title , 0 , 36, '...' ).'</a></h4>'); $return .= ' '.get_course_unit_number($course_id ).' Lectures '.wplms_show_unit_time($course_id).' Hours'; // $return .= '<a>ID).'" class="desc" >'. apply_filters('vibe_thumb_desc','<p class="block_desc">'.mb_strimwidth(vibe_custom_types_excerpt($n,$custom_post->ID), 0 , 100, '...' ).'</p>',$featured_style).'</a>'; $return .= '<a>ID).'" class="desc" >'. '<p class="block_desch">'.mb_strimwidth(get_the_excerpt(), 0 , 100, '...' ).'</p>'.'</a>'; // $return .= '<p class="block_content">'.mb_strimwidth($custom_post->post_content, 0, 30, '...' ).'</p>'; $return .= ''.bp_course_get_course_credits().'';
November 26, 2020 at 4:40 pm #326696Anshuman SahuKeymasterWell this is the function which returns instructor html. " $instructor_meta .= bp_course_get_instructor(); -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
- The topic ‘sow instructor name on course card’ is closed to new replies.