Course Shortcodes
Course Shortcodes
ID
Returns the ID of the current LearnDash course.
[bdash_course_id]
Title
Returns the title of the current LearnDash course.
[bdash_course_title]
| Attribute | Description | Default |
|---|---|---|
target_post | Which post's title to use: current or a specific post ID. | current |
course_id | Course ID when targeting a specific course. | — |
Content
Returns the main body content of the current LearnDash course.
[bdash_course_content]
| Attribute | Description | Default |
|---|---|---|
target_post | Which post's content to use: current or a specific post ID. | current |
course_id | Course ID when targeting a specific course. | — |
Content Table
Renders a structured table of the course's lessons, topics, and quizzes with progress indicators.
[bdash_course_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 |
Description
Returns the excerpt or summary text of the current LearnDash course.
[bdash_course_description]
Date Completed
Returns the date the current user completed this course.
[bdash_course_user_date_completed]
Materials
Returns the materials (downloadable files or links) associated with the current course.
[bdash_course_materials]
Featured Image
Returns the featured image of the current course, lesson, topic, or quiz.
[bdash_image]
Video
Returns the featured video embedded in the current course, lesson, topic, or quiz.
[bdash_video]
| Attribute | Description | Default |
|---|---|---|
featured_image | Show the featured image as a fallback when no video is set. | false |
show_message_if_progression_incomplete | Show a message instead of the video when progression is not yet complete. | false |
Video or Image
Returns the featured video if one is set; falls back to the featured image if not.
[bdash_video_or_image]
Course List
Renders a list of LearnDash courses.
[bdash_course_list]
Course Navigation
Renders the full course outline — lessons, topics, and quizzes — with completion status icons.
[bdash_course_navigation]
| Attribute | Description | Default |
|---|---|---|
expand | Default expand state: all, current (current section only), or collapse. | all |
highlight_current_page | Highlight the item matching the current page in the outline. | true |
show_course_quizzes | Include course-level quizzes in the outline. | false |
show_lesson_quizzes | Include lesson-level quizzes in the outline. | false |
show_topic_quizzes | Include topic-level quizzes in the outline. | false |
Progress Bar
Renders a visual progress bar for a LearnDash course.
[bdash_course_progress]
| Attribute | Description | Options | Default |
|---|---|---|---|
course_id | Course to show progress for. | Any course ID | Current course |
shape | Display style. | line, circle, semi-circle, text, raw | line |
number | Progress number format. | percent, completed, total | percent |
text_color | Color for the progress label (hex, no #). | e.g. 555555 | — |
Example: [bdash_course_progress shape="circle" number="percent"]
Parent Course
Parent Course Title
Returns the title of the parent course of the current lesson, topic, or quiz.
[bdash_parent_course_title]
Parent Course URL
Returns the URL of the parent course.
[bdash_parent_course_url]
Parent Course Link
Returns a complete <a> link to the parent course.
[bdash_parent_course_link]
Labels
These shortcodes return LearnDash's localized label strings — useful when you need the plugin's translated term for "Course", "Next Lesson", etc. to appear in a template.
Course Label
[bdash_course_label]
Returns LearnDash's localized label for "Course".
Next Course Label
[bdash_next_course_label]
Returns LearnDash's localized label for "Next Course".
Previous Course Label
[bdash_previous_course_label]
Returns LearnDash's localized label for "Previous Course".
Back to Course Label
[bdash_back_to_course_label]
Returns LearnDash's localized label for "Back to Course".
Certificate
Course Certificate Link
Returns a complete <a> link to the current user's certificate for this course, once earned.
[bdash_course_certificate_link]
| Attribute | Description | Default |
|---|---|---|
target_post | Which post's certificate to use. | current |
course_id | Specific course ID. | — |
label | Link text to display. | Certificate title |
class | CSS class to apply to the <a> element. | — |
Course Certificate URL
Returns only the URL of the course certificate (no link markup).
[bdash_course_certificate_url]
| Attribute | Description | Default |
|---|---|---|
target_post | Which post's certificate to use. | current |
course_id | Specific course ID. | — |
Course Grid
These shortcodes target fields from the LearnDash Course Grid add-on (sold separately). They will only return values when Course Grid is installed and active.
Short Description
[bdash_course_grid_short_description]
Returns the custom short description set for this course in Course Grid settings.
Ribbon Text
[bdash_course_grid_ribbon_text]
Returns the ribbon label configured for this course in Course Grid settings (e.g. "New", "Popular").
Button Text
[bdash_course_grid_button_text]
Returns the custom call-to-action label set for this course in Course Grid settings.
Video Preview Code
[bdash_course_grid_video_preview_code]
Returns the preview video embed code or URL set for this course in Course Grid settings.
Video Preview Enabled
[bdash_course_grid_video_preview_enable]
Returns true if a preview video has been configured for this course in Course Grid settings. Use as a conditional: [wpbb-if post:bdash_course_grid_video_preview_enable]...[/wpbb-if]
The following shortcodes are only available when LearnDash 3.0 or later is installed and active.
Background Color
Returns the background color set for this course in LearnDash settings.
[bdash_course_color_background]
Text Color
Returns the text color set for this course in LearnDash settings.
[bdash_course_color_text]
Course Price
Returns the price of this course as configured in LearnDash course settings.
[bdash_course_price]
| Attribute | Description | Options | Default |
|---|---|---|---|
output | Output format. | text (formatted price string) | text |
Course Price Status
Returns the pricing model of this course: Free, Pay Once, Subscribe, or Closed.
[bdash_course_price_type_label]
Course Price Interval
Returns the billing interval for subscription-priced courses (e.g. monthly, yearly).
[bdash_course_price_interval]
Course Price Frequency
Returns how often the subscription is charged (e.g. "1 month").
[bdash_course_price_frequency]
Course Price URL
Returns the custom checkout URL configured for this course in LearnDash settings.
[bdash_course_price_url]
Course Price Currency
Returns the currency used for this course's price.
[bdash_course_price_currency]
| Attribute | Description | Options | Default |
|---|---|---|---|
output | Return the currency code (e.g. USD) or symbol (e.g. $). | code / symbol | code |