Skip to main content

Topic Shortcodes

Topic Shortcodes

ID

Returns the ID of the current LearnDash topic.

[bdash_topic_id]

Title

Returns the title of the current LearnDash topic.

[bdash_topic_title]

Content

Returns the main body content of the current LearnDash topic.

[bdash_topic_content]

Content Table

Renders a table of the topic's quizzes with completion status indicators.

[bdash_topic_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 / future
expand_all_by_defaultExpand all sections when the page loads.true / false
expand_collapse_all_visibilityShow an expand/collapse all button.true / false

Topic Navigation

Renders the outline of the current topic's quizzes with completion status icons.

[bdash_topic_navigation]

AttributeDescriptionDefault
expandDefault expand state: all, current, or collapse.all
highlight_current_pageHighlight the current page in the outline.true
show_topic_quizzesInclude topic-level quizzes in the outline.false

Materials

Returns the materials (downloadable files or links) associated with the current topic.

[bdash_topic_materials]

Topic List

Renders a list of topics within the current lesson.

[bdash_topic_list]

Previous Topic

[bdash_previous_topic_title] — Returns the title of the previous topic.

[bdash_previous_topic_url] — Returns the URL of the previous topic.

[bdash_previous_topic_link] — Returns a complete <a> link to the previous topic.

[bdash_previous_topic_id] — Returns the ID of the previous topic.

Next Topic

[bdash_next_topic_title] — Returns the title of the next topic.

[bdash_next_topic_url] — Returns the URL of the next topic.

[bdash_next_topic_link] — Returns a complete <a> link to the next topic.

[bdash_next_topic_id] — Returns the ID of the next topic.

Parent Lesson

[bdash_parent_topic_title] — Returns the title of the lesson this topic belongs to.

[bdash_parent_topic_url] — Returns the URL of the parent lesson.

[bdash_parent_topic_link] — Returns a complete <a> link to the parent lesson.

Labels

These shortcodes return LearnDash's localized label strings for topic-related navigation text.

[bdash_topic_label] — Returns the localized label for "Topic".

[bdash_next_topic_label] — Returns the localized label for "Next Topic".

[bdash_previous_topic_label] — Returns the localized label for "Previous Topic".