Instructor List Shortcode

With the instructors shortcode, you can display a customizable list of instructors anywhere on your site. This shortcode offers multiple attributes to control the display, order, and pagination of instructors.

Default Shortcode

Shortcode: [masteriyo_instructors_list]

Instructor List's Attributes

AttributeDescriptionExample
countTo display a total number of instructors.[masteriyo_instructors_list count="5"]
columnsTo display numbers in the form of columns (supports 1–4 columns).[masteriyo_instructors_list columns="2"]
idsDisplay specific instructors using their IDs.[masteriyo_instructors_list ids="1,5,9"]
exclude_idsComma-separated list of instructor IDs to exclude.[masteriyo_instructors_list exclude_ids="3,7"]
orderOrder direction to display instructor list: ASC (ascending) or DESC (descending).[masteriyo_instructors_list order="ASC"]
order_bySort instructors by criteria like name, date, or other fields.[masteriyo_instructors_list orderby="name"]
paginateEnable pagination: "true" to turn on, "false" to turn off.[masteriyo_instructors_list paginate="true"]
per_pageNumber of instructors displayed per page (requires paginate="true").[masteriyo_instructors_list per_page="5"]

Examples

  1. Basic Usage

Display 6 instructors in 2 columns:
[masteriyo_instructors_list count="6" columns="2"]

  1. Filter by IDs

Show instructors with IDs 1, 3, 5 in 4 columns:
[masteriyo_instructors_list ids="1,3,5" columns="4"]

  1. Pagination

Display 20 instructors per page with pagination enabled, ordered by name (A–Z):
[masteriyo_instructors_list paginate="true" per_page="20" orderby="name" order="ASC"]

  1. Advanced Example

Show 15 instructors in 3 columns, exclude IDs 4, 5, 6, and enable pagination with 5 per page:
[masteriyo_instructors_list count="15" columns="3" exclude_ids="4,5,6" paginate="true" per_page="5"]


Was this article helpful to you?
Give us Rating

Last edited on April 25, 2025.
Edit this page