Skip to content

[reigncoursecategories]

Displays a responsive grid of Tutor LMS course categories, each linking to its category archive.

Registered as reign_course_categories. Categories come from the Tutor LMS course-category taxonomy.

Attribute Default Description
count 8 Number of categories to show. See the note on count="0" below.
columns 4 Grid columns: 1, 2, 3, 4, or 6.
orderby name Order by name or count.
order ASC ASC or DESC.
show_count yes Show the course count under each category.
show_image yes Show the category thumbnail, or a placeholder when none is set.
hide_empty yes Hide categories that have no courses.
  • Each category shows its thumbnail image if a thumbnail_id term image exists; otherwise a gradient placeholder is shown.
  • If no categories match, the shortcode outputs a “No categories found.” message.
  • The grid steps down its column count at 991px, 768px, and 480px so it stays readable on smaller screens.
  • count="0" (or a blank count) is bounded to a filterable maximum of 100 rather than loading every category. Change the ceiling with the reign_course_categories_max filter. Positive counts and the default of 8 are unaffected.
[reign_course_categories count="6" columns="3" orderby="count" order="DESC"]