Enhanced Course Shortcode: [reign_tutor_course]
This shortcode extends the standard TutorLMS [tutor_course] shortcode with additional parameters for more flexible course displays.
Basic Usage
[reign_tutor_course]
Parameters
Standard TutorLMS Parameters
All standard [tutor_course] parameters are supported:
| Parameter | Description | Default | Example |
|---|---|---|---|
id |
Specific course IDs to display | – | "1,2,3" |
exclude_ids |
Course IDs to exclude | – | "4,5" |
category |
Filter by category slug | – | "web-development" |
orderby |
Sort courses by | "ID" |
"title", "date", "menu_order" |
order |
Sort direction | "DESC" |
"ASC", "DESC" |
count |
Number of courses to display | "10" |
Any number |
Enhanced Reign Parameters
| Parameter | Description | Default | Options |
|---|---|---|---|
my_courses |
Show only enrolled courses | "no" |
"yes", "no" |
user_id |
Specific user’s courses | Current user | User ID or "current" |
show_progress |
Display progress bar | "no" |
"yes", "no" |
course_status |
Filter by enrollment status | "all" |
"all", "enrolled", "completed", "in_progress" |
layout_style |
Display layout style | "default" |
"default", "grid", "list" |
columns |
Grid columns (grid layout) | "3" |
"2", "3", "4" |
show_instructor |
Show instructor name | "yes" |
"yes", "no" |
show_category |
Show course category | "yes" |
"yes", "no" |
show_duration |
Show course duration | "yes" |
"yes", "no" |
show_students |
Show enrolled students count | "yes" |
"yes", "no" |
show_lessons |
Show lesson count | "yes" |
"yes", "no" |
Example Usage
Display Current User’s Enrolled Courses
[reign_tutor_course my_courses="yes" show_progress="yes"]
Show Specific User’s Completed Courses
[reign_tutor_course user_id="123" course_status="completed" layout_style="grid" columns="4"]
Display In-Progress Courses with Progress Bars
[reign_tutor_course my_courses="yes" course_status="in_progress" show_progress="yes"]
Category-Specific Course Grid
[reign_tutor_course category="programming" layout_style="grid" columns="3" count="6"]
Minimal Course List
[reign_tutor_course layout_style="list" show_instructor="no" show_category="no" show_duration="no"]
Profile Integration
When the “My Courses” tab is enabled, it automatically displays on user profiles showing:
- Enrolled courses for the viewed user
- Progress bars for each course (if enabled)
- Proper filtering based on the profile being viewed
The shortcode used internally for profile display:
[reign_tutor_course my_courses="yes" user_id="{profile_user_id}" show_progress="yes"]
Use Cases
1. Member Dashboard
Create a personalized dashboard showing a user’s learning progress:
[reign_tutor_course my_courses="yes" show_progress="yes" layout_style="grid"]
2. Instructor Portfolio
Display courses by a specific instructor:
[reign_tutor_course user_id="instructor_id" layout_style="list"]
3. Course Category Pages
Show courses from specific categories:
[reign_tutor_course category="business" count="12" columns="4"]
4. Homepage Featured Courses
Display selected courses on homepage:
[reign_tutor_course id="1,5,8" layout_style="grid" columns="3"]
