Shortcode reference

All seven shortcodes, what they show and every optional attribute.

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.

AttributeWhat it doesDefault
columnsCards per row3
per_pageCourses per page (pagination appears beyond this)12
categoryShow only courses in this course category (use the category slug)all categories
orderbySort order: date, title or menu_orderdate

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.

AttributeWhat it doesDefault
course_idWhich 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.

AttributeWhat it doesDefault
course_idWhich 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.

AttributeWhat it doesDefault
course_idWhich 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.

AttributeWhat it doesDefault
redirectWhere to send students after they sign upyour home page

Still stuck?

Search the knowledgebase for another angle, or head to support. Pro customers can open a ticket there.