Skip to main content

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]

AttributeDescriptionDefault
target_postWhich post's title to use: current or a specific post ID.current
course_idCourse ID when targeting a specific course.

Content

Returns the main body content of the current LearnDash course.

[bdash_course_content]

AttributeDescriptionDefault
target_postWhich post's content to use: current or a specific post ID.current
course_idCourse 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]

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

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]

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]

AttributeDescriptionDefault
featured_imageShow the featured image as a fallback when no video is set.false
show_message_if_progression_incompleteShow 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]

AttributeDescriptionDefault
expandDefault expand state: all, current (current section only), or collapse.all
highlight_current_pageHighlight the item matching the current page in the outline.true
show_course_quizzesInclude course-level quizzes in the outline.false
show_lesson_quizzesInclude lesson-level quizzes in the outline.false
show_topic_quizzesInclude topic-level quizzes in the outline.false

Progress Bar

Renders a visual progress bar for a LearnDash course.

[bdash_course_progress]

AttributeDescriptionOptionsDefault
course_idCourse to show progress for.Any course IDCurrent course
shapeDisplay style.line, circle, semi-circle, text, rawline
numberProgress number format.percent, completed, totalpercent
text_colorColor 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]

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

Returns a complete <a> link to the current user's certificate for this course, once earned.

[bdash_course_certificate_link]

AttributeDescriptionDefault
target_postWhich post's certificate to use.current
course_idSpecific course ID.
labelLink text to display.Certificate title
classCSS 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]

AttributeDescriptionDefault
target_postWhich post's certificate to use.current
course_idSpecific 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]

Requires LearnDash 3.0+

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]

AttributeDescriptionOptionsDefault
outputOutput 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]

AttributeDescriptionOptionsDefault
outputReturn the currency code (e.g. USD) or symbol (e.g. $).code / symbolcode