Post Shortcodes
Post Shortcodes
These shortcodes work on any LearnDash post type — courses, lessons, topics, and quizzes.
Content
Returns the content of the current post, with optional drip-schedule handling.
[bdash_content]
| Attribute | Description | Default |
|---|---|---|
id | Specific post ID to pull content from. | Current post |
drip | Replace content with a message when the post is not yet drip-available. | false |
drip_text | Custom message to show when content is drip-locked. | LearnDash default |
drip_redirect | Redirect URL when content is drip-locked. | — |
Materials
Returns the materials (downloadable files or links) for the current post.
[bdash_materials]
Returns the materials from the parent post (e.g. parent lesson's materials when on a topic).
[bdash_parent_materials]
Background Color
Returns the background color assigned to this post in LearnDash settings.
[bdash_color_background]
Requires LearnDash 3.0+.
Text Color
Returns the text color assigned to this post in LearnDash settings.
[bdash_color_text]
Requires LearnDash 3.0+.