Skip to content

Modern Courses Shortcode

Displays LearnDash courses in a modern, AJAX-driven grid.

  • Shortcode: [modern_courses]
  • Alias: [reign_courses] (identical attributes and behavior)
  • Block: reign/modern-courses (Modern Courses)

Every attribute below is optional. The value shown is the default.

Attribute Default Accepted values Purpose
per_page 12 integer, or -1 for all Courses per page
columns 3 integer Grid columns
orderby date date, title, menu_order, rand (any WP_Query value) Sort field
order DESC ASC, DESC Sort direction
category empty category slug(s), comma-separated Filter by course category
tag empty tag slug(s) Filter by course tag
course_ids empty comma-separated IDs Show only these courses, in this order
show_filters yes yes, no Show the filter controls
show_search yes yes, no Show the search box
show_sorting yes yes, no Show the sort dropdown
show_progress yes yes, no Show progress bars for enrolled users
show_reviews yes yes, no Show star ratings and review count
template classic classic, minimal, premium, detailed Card design
view grid grid, list Layout view
instructor empty instructor ID(s) or author Filter by instructor
instructor_role empty role slug Filter instructors by role
price_type empty free, paid, all Filter by price type
enrolled empty yes, no, all Filter by enrollment (logged-in users)
progress_min empty 0-100 Minimum progress percentage
progress_max empty 0-100 Maximum progress percentage
pagination numbers numbers, load_more, infinite, both Pagination style

Featured courses in the premium template:

[modern_courses tag="featured" template="premium" columns="3"]

A specific set of courses, no controls, minimal cards:

[modern_courses course_ids="101,102,103" template="minimal" show_filters="no" show_search="no" show_sorting="no"]

Free courses only, six per page:

[modern_courses price_type="free" per_page="6"]

The Modern Courses block exposes a subset in the editor: per_page, columns, show_filters, show_search, and show_reviews. Use the shortcode when you need any of the other attributes.

  • orderby is passed through to WordPress, so standard WP_Query values work. The on-screen sort control offers newest, oldest, title A-Z, and title Z-A.
  • Progress and enrollment filters apply to the logged-in user viewing the page.