Courses Shortcode
Display a course list anywhere with the [masteriyo_courses] shortcode — columns, count, category, order, and pagination attributes with examples.
This shortcode lets you show a list of courses anywhere on your site.
The default shortcode is: [masteriyo_courses]
This will display both free and premium courses in a 3-column format. By default, it shows up to 12 courses.
However, there are more attributes via which you will have some control on what set of courses you want to show.
Attributes
| Attribute | Default | Description |
|---|---|---|
count | 12 | How many courses to show in total. |
columns | 3 | Number of columns in the grid, from 1 to 4. |
category | (empty) | One or more course category slugs, separated by commas (e.g. art, science, music). Empty shows courses from every category. |
ids | (empty) | Show only these courses. Comma-separated course IDs. |
exclude_ids | (empty) | Hide these courses. Comma-separated course IDs. |
per_page | -1 | Courses per page. Only takes effect when show_pagination is on. |
order | DESC | Sort direction: ASC (ascending) or DESC (descending). |
orderby | date | Field to sort by — date, title, name, ID, author, modified, rand, or menu_order. |
show_pagination | off | on to show pagination links, off to hide them. |
view | grid | Layout mode: grid or list. |
layout | default | Course card template to use. |
Examples
-
Shortcode:
[masteriyo_courses columns=4 count=4 category="art"] -
Shortcode:
[masteriyo_courses columns=2 count=4] -
Shortcode:
[masteriyo_courses count="6" columns="3" category="photography" per_page="4" order="DESC" orderby="date" show_pagination="on"] -
Shortcode:
[masteriyo_courses count="6" columns="3" category="photography, art, science, music" per_page="4" order="DESC" orderby="date" show_pagination="on"]In the fourth shortcode, the courses from various categories will be displayed.
Was this article helpful to you?
Give us Rating
Last edited on July 22, 2026.
Edit this page