Quiz Shortcodes
Quiz Shortcodes
ID
Returns the ID of the current LearnDash quiz.
[bdash_quiz_id]
Title
Returns the title of the current LearnDash quiz.
[bdash_quiz_title]
Content
Returns the main body content of the current LearnDash quiz.
[bdash_quiz_content]
Quiz List
Renders a list of quizzes within the current lesson or topic.
[bdash_quiz_list]
Previous Quiz
[bdash_previous_quiz_title] — Returns the title of the previous quiz.
[bdash_previous_quiz_url] — Returns the URL of the previous quiz.
[bdash_previous_quiz_link] — Returns a complete <a> link to the previous quiz.
[bdash_previous_quiz_id] — Returns the ID of the previous quiz.
Next Quiz
[bdash_next_quiz_title] — Returns the title of the next quiz.
[bdash_next_quiz_url] — Returns the URL of the next quiz.
[bdash_next_quiz_link] — Returns a complete <a> link to the next quiz.
[bdash_next_quiz_id] — Returns the ID of the next quiz.
Certificate
Quiz Certificate Link
Returns a complete <a> link to the current user's certificate for this quiz, once earned.
[bdash_quiz_certificate_link]
| Attribute | Description | Default |
|---|---|---|
target_post | Which post's certificate to use. | current |
quiz_id | Specific quiz ID. | — |
label | Link text to display. | Certificate title |
class | CSS class to apply to the <a> element. | — |
Quiz Certificate URL
Returns only the URL of the quiz certificate (no link markup).
[bdash_quiz_certificate_url]
| Attribute | Description | Default |
|---|---|---|
target_post | Which post's certificate to use. | current |
quiz_id | Specific quiz ID. | — |
Labels
These shortcodes return LearnDash's localized label strings for quiz-related navigation text.
[bdash_quiz_label] — Returns the localized label for "Quiz".
[bdash_next_quiz_label] — Returns the localized label for "Next Quiz".
[bdash_previous_quiz_label] — Returns the localized label for "Previous Quiz".