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.
@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
Thank you...appreciate it.
@torontomeme,
Thanks for confirming. Closing the topic