Skip to content

Modern Groups Shortcode

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

  • Shortcode: [modern_groups]

There is no [reign_groups] shortcode; [modern_groups] is the only groups shortcode the addon registers.

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

Attribute Default Accepted values Purpose
per_page 12 integer Groups per page
columns 3 integer Grid columns
orderby date date, title, menu_order, members Sort field (members sorts by member count)
order DESC ASC, DESC Sort direction
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_view_switcher yes yes, no Show the grid/list toggle
show_pagination yes yes, no Show pagination
pagination_type numbers numbers, load_more, infinite Pagination style
show_progress yes yes, no Show progress display
show_members yes yes, no Show member count
show_courses yes yes, no Show course count
show_price yes yes, no Show price
show_categories yes yes, no Show categories
show_instructor yes yes, no Show the group leader/instructor
categories empty comma-separated category IDs or slugs Filter by category
tags empty comma-separated tag IDs or slugs Filter by tag
instructor_id empty user ID Filter by group leader
enrolled_only no yes, no Show only the current user’s groups
default_view grid grid, list Starting view

Two columns, six per page, list view:

[modern_groups columns="2" per_page="6" default_view="list"]

Only the current user’s groups, sorted by member count:

[modern_groups enrolled_only="yes" orderby="members" order="DESC"]

Trim the cards and hide the view switcher:

[modern_groups show_price="no" show_categories="no" show_view_switcher="no"]
  • The addon does not provide separate card templates for groups the way it does for courses; group card appearance is controlled by the show_* toggles above.
  • Sorting by members uses a numeric meta sort on the member count.