Skip to content

Course categories shortcode ([reigncoursecategories])

Reign Tutor LMS Addon overviewPremiumGet Reign Tutor LMS Addon →

Also called: course categories grid, category list, category cards, category circles, browse by category, course topics.

This shortcode lists your Tutor LMS course categories. Each one links to its category page. Put it on any page, post or widget area.

  1. Open the page or post.
  2. Add a Shortcode block.
  3. Type [reign_course_categories], and add any option from the table below.
  4. Save the page.
Attribute Default Values
layout cards cards, circles or list.
count 8 How many categories. 0 shows up to 100.
columns 4 1 to 6, for cards and circles. On phones the columns drop to fit.
orderby name name, count, slug or term_id.
order ASC ASC or DESC.
show_count yes Number of courses in each category.
show_image yes The category image. Categories without one get a letter tile.
hide_empty yes Leave out categories with no courses.

Examples:

[reign_course_categories]
[reign_course_categories layout="circles" columns="6" count="12"]
[reign_course_categories layout="list" orderby="count" order="DESC" show_image="no"]

The page shows your categories in the layout you chose.

Why does it say “No categories found.”?

Section titled “Why does it say “No categories found.”?”

There is no category to list. With hide_empty="yes" (the default), categories with no courses are left out. A site with no published courses shows this message.

The cap of 100 for count="0" can be changed with the reign_course_categories_max filter.