Excerpt in Certificate

Home Forums Legacy Support Support queries How-to & Troubleshooting Excerpt in Certificate

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #157247
    torontomeme
    Spectator
    Hello. When we create new course, we name our course "Course 1" and enter actual name of course in excerpt like "Accounting 101". When system generates certificate, we would like it to show "Course 1 - Accounting 101" instead of just "Course 1" Can you please instruct me or share the code on how to achieve this? Thank you.   Kevin.
    #157353
    Diana
    Participant
    @torontomeme, Paste this code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php add_shortcode('certificate_course_excerpt','certificate_excerpt'); function certificate_excerpt( $atts, $content = null ) { $id = $_GET['c']; if(isset($id) && $id) return get_the_excerpt($id); else return '[certificate_course_excerpt]'; } Then on certificate template use this shortcode: [certificate_course_excerpt] This will return the excerpt of the course on the certificate
    #157361
    torontomeme
    Spectator
    Thank you...appreciate it.
    #157366
    Diana
    Participant
    @torontomeme, Thanks for confirming. Closing the topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Excerpt in Certificate’ is closed to new replies.