How to Display Learner-Specific Content
Show different content to different learners based on their relationship with a course — enrolled or not, started or completed. This guide covers two approaches: a visual status label using the Status module, and conditional content sections using field connection conditionals.
- BeaverDash installed, activated, and licensed
- A Beaver Themer layout targeting the relevant LearnDash content type
Approach 1: Visual status label with the Status module
The Status module renders a configurable label based on the current learner's state. Each of the four states has its own text, icon, and color settings.
Step 1: Add the BeaverDash Status module to your layout.
Step 2: In the General tab, configure what each state shows:
| State | When it shows | Suggested output |
|---|---|---|
| Open | Available but not started | "Not started yet" |
| Started | In progress | "In progress" |
| Completed | Finished | "Completed" |
| Locked | Not yet accessible | "Complete previous lessons first" |
Step 3: Save and test by viewing the page as users in different states.
Approach 2: Show or hide entire sections with conditionals
Use BeaverDash conditional field connections in Beaver Themer to show or hide whole sections based on enrollment or progress.
Step 1: In the Beaver Builder editor, select the row or column you want to show conditionally.
Step 2: In the row or column settings, open the Advanced tab and locate Field Connections (if available) or use a Beaver Builder visibility rule.
Step 3: Use the following BeaverDash conditionals with [wpbb-if] in a Beaver Builder HTML module to wrap conditional content:
[wpbb-if post:bdash_student]
Content shown only to enrolled learners
[/wpbb-if]
[wpbb-if post:bdash_visitor]
Content shown only to non-enrolled visitors
[/wpbb-if]
[wpbb-if post:bdash_course_completed]
Content shown only after the learner completes the course
[/wpbb-if]
Result
Enrolled learners see content and calls to action relevant to their progress. Visitors see enrollment prompts. Completed learners see congratulations or next steps. All from a single template.