Shortcodes & pages
The pages CourseGlade creates on install, the shortcodes that power them, and how to reassign them.
The key CourseGlade screens are plain WordPress pages with a shortcode inside, so you can move, restyle, or rebuild them in any theme or page builder. In the block editor you can use the matching CourseGlade blocks instead, with visual style settings.
Shortcodes
| Shortcode | What it renders |
|---|---|
[courseglade_courses] | The filterable course catalog |
[courseglade_dashboard] | The student/instructor dashboard (tabs adapt to the role) |
[courseglade_checkout] | The checkout page |
[courseglade_enroll_button] | An enroll/buy button for a course |
[courseglade_quiz] | A standalone quiz |
[courseglade_auth] | Login and registration (use tab="login" or tab="register") |
[courseglade_become_instructor] | The instructor application form |
[courseglade_forgot_password] | Request a password reset |
[courseglade_reset_password] | Set a new password from a reset email |
[courseglade_course_categories] | A grid of course categories, each linking to its courses |
Pro addons register more: [courseglade_certificate_verify] (Certificates), [courseglade_plans] (Subscriptions), [courseglade_bundle] (Course Bundles), and [courseglade_leaderboard], [courseglade_user_points] and [courseglade_user_badges] (Leaderboard & Gamification). Each works only while its addon is active.
Shortcode attributes
Every attribute is optional. yes / no attributes take exactly those words.
[courseglade_courses]
Defaults for columns and limit come from the catalog layout settings.
| Attribute | Values | Default |
|---|---|---|
columns | Number of grid columns | Catalog setting (3) |
limit | Courses per page | Catalog setting (12) |
category | A course category slug to filter by | All |
orderby | The sort to start on: newest, oldest, title-asc, title-desc, popular, rating, price-asc, price-desc | newest |
level | A level slug the level filter starts on | Any |
price | free or paid — what the price filter starts on | Any |
featured | 1 to show only featured courses | Off |
show | courses or bundles — only one kind, when Course Bundles lists bundles beside courses | Both |
filters | Which filter controls to show: no for none, or a comma list in display order from search, category, level, price, sort | All |
hide_filters | Controls to drop from filters (a comma list), or all | None |
category_style | dropdown or pills (a row of buttons between the filter bar and the grid) | dropdown |
category_images | yes / no — pills only: each category’s image behind its name | yes |
category_children | yes / no — pills only: include subcategories | no |
prev_text, next_text | Pagination link text | ‹ and › |
For example: [courseglade_courses columns="4" category="design" hide_filters="price"].
[courseglade_course_categories]
The Course Categories block renders through this shortcode.
| Attribute | Values | Default |
|---|---|---|
columns | 1–6 | 4 |
limit | How many categories; 0 for all (up to 48) | 0 |
orderby | name or count | name |
hide_empty | yes / no — leave out categories with no courses | yes |
top_level | yes / no — only categories without a parent | no |
show_image | yes / no | yes |
show_count | yes / no | yes |
show_description | yes / no | no |
For example: [courseglade_course_categories columns="3" top_level="yes" orderby="count"].
[courseglade_dashboard]
| Attribute | Values | Default |
|---|---|---|
show_quizzes | yes / no — the quiz attempts tab | yes |
show_wishlist | yes / no — the wishlist tab | yes |
[courseglade_enroll_button]
| Attribute | Values | Default |
|---|---|---|
course_id | The course ID | The current post |
button_text | Button label | ”Enroll Now” |
redirect | URL to send the student to after enrolling | — |
show_price | yes / no | yes |
class | Extra CSS class on the wrapper | — |
For example: [courseglade_enroll_button course_id="123" button_text="Start learning"].
[courseglade_quiz]
| Attribute | Values | Default |
|---|---|---|
id | The quiz ID (required) | — |
auto_start | true / false — skip the start screen | The quiz’s own setting |
For example: [courseglade_quiz id="123" auto_start="true"].
[courseglade_auth]
| Attribute | Values | Default |
|---|---|---|
tab | login or register — the tab that opens first | login |
tabs | yes / no — show the Login / Register tab switcher | yes |
redirect | URL to send people to after signing in | The dashboard page |
login_title, login_subtitle | Heading and line under it on the login panel | Translated default |
register_title, register_subtitle | Heading and line under it on the register panel | Translated default |
If registration is turned off, the login tab always shows.
[courseglade_forgot_password] and [courseglade_reset_password]
| Attribute | Values | Default |
|---|---|---|
title | Heading | Translated default |
subtitle | The line under it | Translated default |
[courseglade_checkout] and [courseglade_become_instructor] take no attributes.
Pro shortcodes
[courseglade_plans] (Subscriptions) lists every membership plan that can be bought.
| Attribute | Values | Default |
|---|---|---|
limit | How many plans | 12 |
orderby | order (the order you set) or price | order |
[courseglade_bundle] (Course Bundles) renders one bundle card. It takes id, the bundle ID: [courseglade_bundle id="123"].
[courseglade_certificate_verify] (Certificates) renders the certificate lookup form.
| Attribute | Values | Default |
|---|---|---|
title | Form heading | ”Verify a Certificate” |
placeholder | Input placeholder | ”Enter certificate number” |
button | Button label | ”Verify” |
[courseglade_leaderboard] (Leaderboard & Gamification):
| Attribute | Values | Default |
|---|---|---|
limit | How many people | 10 |
period | all, month, week, or today | all |
show_avatar | yes / no | yes |
show_rank | yes / no | yes |
show_badges | yes / no | yes |
show_my_rank | yes / no — the signed-in person’s own rank | yes |
[courseglade_user_points] shows the signed-in person’s points.
| Attribute | Values | Default |
|---|---|---|
show_history | yes / no — recent point activity | yes |
history_limit | How many history entries | 5 |
show_rank | yes / no | yes |
[courseglade_user_badges] takes no attributes.
Pages created on install
On activation CourseGlade creates the Courses, Dashboard, Course Checkout, Become an Instructor, Student Registration, Login, Forgot Password, and Reset Password pages, each with the matching shortcode. It tracks them by setting, so renaming or moving them is safe, and it won’t duplicate a page that already exists.
Reassigning pages
CourseGlade links to these pages from emails, dashboards, and course cards, so it needs to know which page is which. Set the mapping in Settings → General → Pages — one Select per role (Courses Page, Student Dashboard Page, Checkout Page, and so on), each with an Open button to preview.
Rebuilding a page
Deleted a page, or want to start fresh? Create a new page, paste the matching shortcode, then point CourseGlade at it in Settings → General → Pages.