Lesson Shortcodes
Lesson Shortcodes
ID
Returns the ID of the current LearnDash lesson.
[bdash_lesson_id]
Title
Returns the title of the current LearnDash lesson.
[bdash_lesson_title]
Content
Returns the main body content of the current LearnDash lesson.
[bdash_lesson_content]
Content Table
Renders a structured table of the lesson's topics and quizzes with completion status indicators.
[bdash_lesson_content_table]
| Attribute | Description | Options |
|---|---|---|
available | Show only items the current user can access. | true / false |
link_unavailable | Make locked items clickable rather than plain text. | true / false |
progression | Filter by whether the user can progress to an item. | true / false |
drip | Filter items by drip status. | past (available) / future (not yet released) |
expand_all_by_default | Expand all sections when the page loads. | true / false |
expand_collapse_all_visibility | Show an expand/collapse all button. | true / false |
Lesson Navigation
Renders the outline of the current lesson — its topics and quizzes — with completion status icons.
[bdash_lesson_navigation]
| Attribute | Description | Default |
|---|---|---|
expand | Default expand state: all, current, or collapse. | all |
highlight_current_page | Highlight the current page in the outline. | true |
show_lesson_quizzes | Include lesson-level quizzes in the outline. | false |
show_topic_quizzes | Include topic-level quizzes in the outline. | false |
Materials
Returns the materials (downloadable files or links) associated with the current lesson.
[bdash_lesson_materials]
Drip Date
Returns the date this lesson becomes available to the current user under a drip schedule.
[bdash_drip_date]
| Attribute | Description | Default |
|---|---|---|
format | PHP date format string for the output. | Site default date format |
Example: [bdash_drip_date format="F j, Y"] → "June 1, 2026"
Lesson List
Renders a list of lessons within the current course.
[bdash_lesson_list]
Previous Lesson
Previous Lesson Title
Returns the title of the previous lesson in the course sequence.
[bdash_previous_lesson_title]
Previous Lesson URL
Returns the URL of the previous lesson.
[bdash_previous_lesson_url]
Previous Lesson Link
Returns a complete <a> link to the previous lesson.
[bdash_previous_lesson_link]
Previous Lesson ID
Returns the ID of the previous lesson.
[bdash_previous_lesson_id]
Next Lesson
Next Lesson Title
Returns the title of the next lesson in the course sequence.
[bdash_next_lesson_title]
Next Lesson URL
Returns the URL of the next lesson.
[bdash_next_lesson_url]
Next Lesson Link
Returns a complete <a> link to the next lesson.
[bdash_next_lesson_link]
Next Lesson ID
Returns the ID of the next lesson.
[bdash_next_lesson_id]
Parent Course
Parent Course Title
Returns the title of the course this lesson belongs to.
[bdash_parent_lesson_title]
Parent Course URL
Returns the URL of the course this lesson belongs to.
[bdash_parent_lesson_url]
Parent Course Link
Returns a complete <a> link to the course this lesson belongs to.
[bdash_parent_lesson_link]
Labels
These shortcodes return LearnDash's localized label strings for lesson-related navigation text.
[bdash_lesson_label] — Returns the localized label for "Lesson".
[bdash_next_lesson_label] — Returns the localized label for "Next Lesson".
[bdash_previous_lesson_label] — Returns the localized label for "Previous Lesson".