sow instructor name on course card

Home Forums Legacy Support 4.0 Bugs & Issues sow instructor name on course card

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #326189
    prateekgupta2009
    Participant
    i 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"
    #326394
    Veronica
    Moderator
    hi can you please the entire code that you are using so I can check the same
    #326397
    Veronica
    Moderator
    hi can you please share the exact (FULL) code that you are using so i can check the same
    #326489
    prateekgupta2009
    Participant
    this file is in Vibe Custom types plugin-->includes--> featured.php Look for case Course 3: Modified Code: case 'course3':
                   $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 &amp; Quiz</li><li> High Quality Recorded Lectures</li><li> Certificate of Completion</li></ul>';
                    $dte = get_the_modified_time('F d,Y');                        
    
                    $return .='ID.'"&gt;';
                        $return .=''.$title.''.$dte.''.'What you will learn?'.$wwyl.''.$wii.'';
                    $return .='<a>ID).'" class="course_button full button"&gt;TAKE THIS COURSE</a>';
                    $return .=''.bp_course_get_course_credits().'';
    
                    $return .='';
                    $return .= '<a>ID).'" &gt;'.get_the_post_thumbnail().'</a>' ;
                    //. apply_filters('vibe_thumb_featured_image',featured_component($custom_post-&gt;ID,$cols),$featured_style);
        $return .= apply_filters('vibe_thumb_date',''. get_the_modified_time('F d,Y').''.'',$featured_style);            
    
                    $return .='&lt;/div&gt;';
                    $return .= '';
                                      //  $return .= $wwyl;
    
    
                    $return .= '';
                    $reviews = get_post_meta($custom_post-&gt;ID,'average_rating',true);
                    $students = get_post_meta($custom_post-&gt;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', '&lt;h4 class="block_title"&gt;<a>ID).'" title="'.$custom_post-&gt;post_title.'"&gt;'.mb_strimwidth($custom_post-&gt;post_title , 0 , 36, '...' ).'</a>&lt;/h4&gt;');
    
    
    
                    $return .= ' '.get_course_unit_number($course_id ).' Lectures '.wplms_show_unit_time($course_id).' Hours';
    
                    // $return .= '<a>ID).'" class="desc" &gt;'. apply_filters('vibe_thumb_desc','&lt;p class="block_desc"&gt;'.mb_strimwidth(vibe_custom_types_excerpt($n,$custom_post-&gt;ID), 0 , 100, '...' ).'&lt;/p&gt;',$featured_style).'</a>';
                    $return .= '<a>ID).'" class="desc" &gt;'. '&lt;p class="block_desch"&gt;'.mb_strimwidth(get_the_excerpt(), 0 , 100, '...' ).'&lt;/p&gt;'.'</a>';
                  //   $return .= '&lt;p class="block_content"&gt;'.mb_strimwidth($custom_post-&gt;post_content, 0, 30, '...' ).'&lt;/p&gt;';
                    $return .= ''.bp_course_get_course_credits().'';
    
    instead of get_the_modified_time i want to show the Instructor name on course card. File URL: https://filebin.net/qlskmpnw4z4cpdxi
    #326696
    Anshuman Sahu
    Keymaster
    Well this is the function which returns instructor html. " $instructor_meta .= bp_course_get_instructor();
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘sow instructor name on course card’ is closed to new replies.