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

AttributeDefaultDescription
count12How many courses to show in total.
columns3Number 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-1Courses per page. Only takes effect when show_pagination is on.
orderDESCSort direction: ASC (ascending) or DESC (descending).
orderbydateField to sort by — date, title, name, ID, author, modified, rand, or menu_order.
show_paginationoffon to show pagination links, off to hide them.
viewgridLayout mode: grid or list.
layoutdefaultCourse card template to use.

Examples

  1. Shortcode: [masteriyo_courses columns=4 count=4 category="art"]

  2. Shortcode: [masteriyo_courses columns=2 count=4]

  3. Shortcode: [masteriyo_courses count="6" columns="3" category="photography" per_page="4" order="DESC" orderby="date" show_pagination="on"]

  4. 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