Every shortcode the plugin provides. Attributes are always optional; leave them out to get the default. Shortcodes marked “signed in” show a friendly sign-in prompt to visitors instead.
The enroll button, progress bar and curriculum outline are also the building blocks for a course page your theme or page builder lays out. On a course’s own page they find the course automatically.
Course catalog
[nonprofit_lms_courses] shows a grid of every published course with open enrollment, with featured images, categories and enroll or continue buttons.
| Attribute | What it does | Default |
|---|---|---|
columns | Cards per row | 3 |
per_page | Courses per page (pagination appears beyond this) | 12 |
category | Show only courses in this course category (use the category slug) | all categories |
orderby | Sort order: date, title or menu_order | date |
Example: [nonprofit_lms_courses columns="2" per_page="6" category="volunteer-training" orderby="title"]
The student’s courses
[nonprofit_lms_my_courses] shows the signed-in student’s enrolled courses with their progress in each. Signed in. No attributes.
Student dashboard
[nonprofit_lms_dashboard] is the student home page: continue where you left off, all enrolled courses with progress, and earned certificates with download links. Signed in. No attributes.
Enroll button
[nonprofit_lms_enroll_button course_id="123"] puts an enroll button for one course anywhere shortcodes work, including inside a lesson. It shows the right state on its own: enroll, continue, or enrollment closed.
| Attribute | What it does | Default |
|---|---|---|
course_id | Which course to enroll in. On a course page it detects the course automatically. | current course |
Curriculum outline
[nonprofit_lms_course_curriculum course_id="123"] shows the topic by topic outline of a course. Useful on landing pages.
| Attribute | What it does | Default |
|---|---|---|
course_id | Which course to outline. On a course page it detects the course automatically. | current course |
Progress bar
[nonprofit_lms_course_progress course_id="123"] shows the signed-in student’s progress through one course as a progress bar. Shows nothing to visitors who aren’t signed in.
| Attribute | What it does | Default |
|---|---|---|
course_id | Which course to show progress for. On a course page it detects the course automatically. | current course |
Registration form
[nonprofit_lms_register redirect="/courses/"] is the student sign-up form: username, email, password, all your profile fields and the consent checkbox. It needs “Anyone can register” turned on. Visitors who are already signed in see a note instead of the form.
| Attribute | What it does | Default |
|---|---|---|
redirect | Where to send students after they sign up | your home page |