Skip to main content

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]

AttributeDescriptionOptions
availableShow only items the current user can access.true / false
link_unavailableMake locked items clickable rather than plain text.true / false
progressionFilter by whether the user can progress to an item.true / false
dripFilter items by drip status.past (available) / future (not yet released)
expand_all_by_defaultExpand all sections when the page loads.true / false
expand_collapse_all_visibilityShow 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]

AttributeDescriptionDefault
expandDefault expand state: all, current, or collapse.all
highlight_current_pageHighlight the current page in the outline.true
show_lesson_quizzesInclude lesson-level quizzes in the outline.false
show_topic_quizzesInclude 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]

AttributeDescriptionDefault
formatPHP 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]

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]

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]

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".