Home › Guides › LearnDash certificate shortcodes: the full list and what each prints

LearnDash certificate shortcodes: the full list and what each prints

Part of our LearnDash certificate plugins.

Short answer

LearnDash certificate shortcodes are four tags you type into a certificate under LearnDash LMS > Certificates. [usermeta] prints the learner, [courseinfo] a course, [quizinfo] a quiz and [groupinfo] a group. Each takes a show or field attribute that picks the value, and the date values take a format attribute.

Key points

  • Match the shortcode to the certificate. [courseinfo] only works on a certificate assigned to a course, [quizinfo] on a quiz certificate and [groupinfo] on a group certificate.
  • Leave out format and a date prints with the time on the end. Add format="j F Y" for a plain date.
  • LearnDash has no shortcode for a verification QR code or an expiry date. Our free CertiSprout adds a QR code that proves a certificate is real. Our Certificate Expiry for LearnDash add-on adds a QR code that opens a page showing the live expiry date.

What are the LearnDash certificate shortcodes?

There are four, and LearnDash lists them on the Shortcodes tab of LearnDash LMS > Certificates in your admin. The official docs page names [usermeta], [courseinfo], [quizinfo] and [groupinfo], plus a gradebook tag, [ld_overall_grade gradebook="ID"], for sites that run the Gradebook add-on (LearnDash docs, Certificate Shortcodes, last updated 2 July 2026, read 11 Oct 2026).

The old learndash.com address for that page now redirects to docs.nexcess.com. We checked the redirect on 11 Oct 2026, so links in older forum threads still land on the current list.

Every value below comes from that docs page. Where the LearnDash code says more than the docs, we say so and mark it. We read LearnDash 5.1.10, the version on our test site.

Tested on LearnDash 5.1.10 (October 2026 lab). The examples were printed on certificates on our lab, and on 4 November we checked the defaults in that version’s code again: a bare [courseinfo] still prints the course title.

Where do the shortcodes go?

Into the body of the certificate post. Open LearnDash LMS > Certificates, edit or add a certificate, and type the shortcodes into the content where each value should print. Then associate that certificate with a course, a group or a quiz, which LearnDash describes as the second of two steps (LearnDash docs, Create a Certificate, last updated 20 August 2026, read 11 Oct 2026).

The assignment matters more than people expect. A shortcode reads its data from the course, quiz or group the certificate was opened from, so the same template can print a different course title for every course it is assigned to.

What does [usermeta] print?

It prints a field from the learner’s WordPress profile. You pick the field with field.

ShortcodePrints
[usermeta field="first_name"]First name.
[usermeta field="last_name"]Last name.
[usermeta field="display_name"]Display name, often first and last name together.
[usermeta field="user_login"]Username.
[usermeta field="nickname"]Nickname, if collected.
[usermeta field="user_email"]Email address.
[usermeta field="user_url"]Website, rarely collected at signup.
[usermeta field="description"]Profile bio, rarely collected at signup.
[usermeta field="id"]WordPress user ID.

Two things the docs do not spell out. First, a bare [usermeta] with no field prints the username, because user_login is the default in the 5.1.10 code. Second, the code also accepts field="first_last_name", which joins first and last name with a space. On our lab on 11 Oct 2026, a bare [usermeta] printed priya.sharma and field="first_last_name" printed Priya Sharma.

If a name prints blank, the field was never filled in. LearnDash’s docs point out that each checkout or registration method collects different fields, so open Users > All Users and check the learner’s profile.

What does [courseinfo] print?

Course data for a certificate assigned to a course. You pick the value with show. LearnDash defines “aggregate” as the sum across the course’s quizzes and “cumulative” as the average.

ShortcodePrints
[courseinfo show="course_title"]Course title.
[courseinfo show="course_url"]Course URL.
[courseinfo show="course_price"]Price, one-time payment courses only.
[courseinfo show="course_price_type"]The course’s Access Mode.
[courseinfo show="enrolled_on"]Enrolment date, not for Open courses. On a course reached through a group, our lab printed the date the learner joined the group.
[courseinfo show="completed_on"]Completion date.
[courseinfo show="user_course_time"]Total time the learner spent on the course.
[courseinfo show="course_points"]Points available.
[courseinfo show="user_course_points"]Points the learner earned.
[courseinfo show="cumulative_score"]Average score across graded parts.
[courseinfo show="cumulative_points"]Average points earned.
[courseinfo show="cumulative_total_points"]Listed by LearnDash as average points earned.
[courseinfo show="cumulative_percentage"]Average percentage across the quizzes.
[courseinfo show="cumulative_timespent"]Average time per part.
[courseinfo show="aggregate_score"]Final score for the course.
[courseinfo show="aggregate_points"]Total points earned.
[courseinfo show="aggregate_total_points"]Listed by LearnDash as total points earned.
[courseinfo show="aggregate_percentage"]Total percentage across the quizzes.
[courseinfo show="aggregate_timespent"]Total time spent on the quizzes.

The 5.1.10 code accepts more attributes than the docs list. course_id and user_id point at a specific course or learner, and decimals (default 2) sets decimal places on scores. seconds_format (default time) prints time spent as a clock time rather than raw seconds. A bare [courseinfo] prints the course title, since that is the default.

What does [quizinfo] print?

Quiz data for a certificate assigned to a quiz. The docs say plainly that it will not work on a course certificate.

ShortcodePrints
[quizinfo show="quiz_title"]Quiz name.
[quizinfo show="course_title"]The course the quiz belongs to.
[quizinfo show="score"]Score on the quiz.
[quizinfo show="count"]Number of questions.
[quizinfo show="pass"]Score needed to pass.
[quizinfo show="points"]Points the learner earned.
[quizinfo show="total_points"]Points available on that attempt.
[quizinfo show="percentage"]Percentage grade.
[quizinfo show="timestamp"]Date and time the quiz was completed.
[quizinfo show="timespent"]Time spent on the quiz.

The code also reads quiz, user_id, time and field_id. The docs do not describe them, so we would not build a certificate on them.

What does [groupinfo] print?

Group data for a certificate assigned to a LearnDash group, and only there.

ShortcodePrints
[groupinfo show="group_title"]Group title.
[groupinfo show="group_url"]Group URL.
[groupinfo show="group_price"]Group price.
[groupinfo show="group_price_type"]The group’s Access Mode.
[groupinfo show="group_users_count"]Number of people enrolled.
[groupinfo show="group_courses_count"]Number of courses in the group.
[groupinfo show="user_group_status"]The learner’s progress status in the group.
[groupinfo show="enrolled_on"]Date the learner joined the group.
[groupinfo show="completed_on"]Date the learner finished every course in the group.
[groupinfo show="percent_completed"]Score across the group’s courses.

Watch the date example on the docs page. It shows [groupinfo show="timestamp" format="F j, Y"], but timestamp is not in the group list, and the 5.1.10 code has no timestamp case for groups. Use [groupinfo show="completed_on" format="F j, Y"] instead. We printed both on a group certificate on our lab: the timestamp one came out blank and the completed_on one printed October 11, 2026.

How do you change the date format?

Add format with a PHP date pattern, the same letters WordPress uses under Settings > General (WordPress, Customizing the Time and Date, read 11 Oct 2026). It works on completed_on and enrolled_on in [courseinfo] and [groupinfo], and on timestamp in [quizinfo].

  • format="j F Y" prints 11 October 2026.
  • format="F j, Y" prints October 11, 2026.
  • format="d/m/Y" prints 11/10/2026.

Leave format out and you get the time as well. In the 5.1.10 code the default pattern is F j, Y, g:i a. So a bare [courseinfo show="completed_on"] prints something like “October 11, 2026, 3:42 pm” on a certificate that was meant to show a date. Our lab PDF printed “October 11, 2026, 6:57 pm” for exactly that.

Why does a shortcode print nothing?

The usual cause is the wrong shortcode for the certificate type: [quizinfo] on a course certificate, or [courseinfo] on a group certificate. Check what the certificate is assigned to first.

Other causes to check:

  • The profile field is empty, so [usermeta] has nothing to print.
  • There is no real completion behind the certificate. The values need a learner who finished the course or passed the quiz. LearnDash’s docs suggest a throwaway quiz with one easy question and your certificate assigned. Pass it, click Print Your Certificate, and refresh that tab after each edit (LearnDash docs, Create a Certificate, last updated 20 August 2026, read 11 Oct 2026).
  • enrolled_on on an Open course, which LearnDash says does not apply.

If your certificates need to expire after a year and remind people to renew, that is the fix we sell: Certificate Expiry for LearnDash, $79 a year for one site.

How do you add a QR code that proves a certificate is real?

LearnDash has no shortcode for this. Two of ours add one: CertiSprout, free, when you only need to prove a certificate is real, and Certificate Expiry for LearnDash, which the next section covers, when certificates also expire. Our longer guide to LearnDash certificate verification pages and QR codes covers the other options.

Free plugin for verification only: CertiSprout on wordpress.org; install it from Plugins > Add New Plugin. It works with the LearnDash certificates you already have, with no settings screen.
Add [cert_qr_verify] to the certificate template under LearnDash LMS > Certificates. The certificate must be assigned to a course or quiz, or the shortcode prints nothing.
The code is created when a learner opens the certificate, after LearnDash confirms the course is complete or the quiz was passed.
To test a layout as an administrator, name a learner and a course: [cert_qr_verify user_id="12" course_id="34"].
CertiSprout does not add expiry dates or reminders; for that, Certificate Expiry for LearnDash, $79 a year, 14-day refund.

A real problem we hit while building this. On 24 August 2026 the QR code on our Certificate Expiry certificates showed on screen and vanished from the PDF. LearnDash’s PDF step adds the site address to any image source that does not start with http://, https:// or /, and our first build embedded the QR as a data: image. The add-on now points the QR image at a real URL on your site, and it prints.

Can a shortcode print the expiry date on the certificate?

Not as plain text, in LearnDash or in our add-on. Certificate Expiry for LearnDash 1.2.0 puts the expiry date on a live page instead, and gives you two shortcodes to reach it.

  • [learndash_certificate_expiry_qr_code] goes in the certificate. It takes no attributes and prints a 120 pixel QR code. Tick “Show a verification QR code on this certificate” in the course settings first, or it prints nothing. It reads the course from the request, so it is for course certificates.
  • [learndash_certificate_expiry_verify] goes on the page the QR code opens. Pick that page under LearnDash LMS > Certificate Expiry > Verification & Sharing. It shows Student, Course, Instructor, Issued, Expires and the current status, such as Active, Expired or Revoked.

Because that page reads the live record, a learner who renews shows the new expiry date straight away. A date printed on the PDF would still show the old one.

A third shortcode is for your site, not the certificate. [learndash_certificate_expiry_status] on a page shows a logged-in learner each certificate with “expires on” and a date, a Download your certificate button while it is active, and a Renew now link once it has expired. Add course_id="123" to show one course. Once a certificate expires, the add-on also blanks LearnDash’s own certificate link, so the old PDF stops being offered.

Put one QR code on each certificate, and make it [learndash_certificate_expiry_qr_code], since its page shows the expiry. Our guide on how to make LearnDash certificates expire walks through the expiry setup itself.

Every LearnDash certificate add-on we make, with what it adds and what it costs, is on our LearnDash certificate plugins page.

What does a full certificate template look like?

Here is a starting body for a course certificate. Leave out the last line if you do not run the Expiry add-on.

This certifies that
[usermeta field="first_name"] [usermeta field="last_name"]
completed
[courseinfo show="course_title"]
on [courseinfo show="completed_on" format="j F Y"]

[learndash_certificate_expiry_qr_code]
The certificate PDF from our lab with this template, learner and dates filled in.
The certificate PDF from this template on our lab, with the learner, course and date filled in. The QR code comes from Certificate Expiry for LearnDash and opens its verify-a-certificate page. The QR shortcode and that page work the same in 1.2.0, the version on sale (LearnDash 5.1.10).

FAQ

Do LearnDash certificate shortcodes work outside a certificate?

The docs say these four are for certificates. For course content elsewhere on the site, LearnDash has a separate set (LearnDash docs, Shortcodes and Blocks, read 11 Oct 2026).

Can I show the learner’s full name in one shortcode?

Yes. [usermeta field="display_name"] prints the display name, which is often first and last name together.

Why does my quiz certificate show a blank course title?

On a quiz certificate use [quizinfo show="course_title"], not [courseinfo].

Can I install CertiSprout today?

Yes. CertiSprout is free on wordpress.org, at version 1.0.6: install CertiSprout from wordpress.org. If your certificates also need an expiry date, the QR code in Certificate Expiry for LearnDash shows it.

Sources

  • LearnDash docs, Certificate Shortcodes: https://docs.nexcess.com/software/learndash/certificate-shortcodes/ (last updated 2 July 2026, read 11 Oct 2026). Old address https://www.learndash.com/support/kb/core/certificates/certificate-shortcodes/ redirects there (checked 11 Oct 2026).
  • LearnDash docs, Create a Certificate: https://docs.nexcess.com/software/learndash/create-certificate/ (read 11 Oct 2026).
  • LearnDash docs, Shortcodes and Blocks: https://docs.nexcess.com/software/learndash/shortcodes-blocks/ (read 11 Oct 2026).
  • WordPress, Customizing the Time and Date: https://wordpress.org/documentation/article/customize-date-and-time-format/ (read 11 Oct 2026).
  • LearnDash 5.1.10 plugin code on our test site, includes/shortcodes/ld_usermeta.php, ld_courseinfo.php, ld_quizinfo.php, ld_groupinfo.php (read 11 Oct 2026).
  • CertiSprout 1.0.6 readme.txt lines 19, 39, 68 and 93, and its wordpress.org listing, https://wordpress.org/plugins/certisprout-certificate-qr-verify-for-learndash/ (listed 3 Nov 2026, read 4 Nov 2026). Version 1.0.6 renamed the plugin from Certificate QR Verify for LearnDash.
  • Certificate Expiry for LearnDash 1.2.0 code, tag v1.2.0 (read 12 Oct 2026).
  • Certificate Expiry version and price: pluginsprout.com product page, version 1.2.0, $79 a year for one site (read 12 Oct 2026).

Need a hand with your certificates?

If a shortcode still prints blank, or you want certificates that expire and verify themselves, tell us what you are building. Or go straight to Certificate Expiry for LearnDash.

LearnDash Certificate Expiry. Make each student's LearnDash certificate expire a set time after they finish, with reminder emails and paid renewal. For first aid, safety and CPD training.

View the add-on