Shortcodes

You can use some elements from MasterStudy LMS with other themes simply by using shortcodes on any page and post.

There is a list of special shortcodes that you can use to paste some elements and options into your website such as courses carousel, course categories, featured instructors, and much more.

Below you can find the list of shortcodes with all available parameters and examples.

1.Search box: shows courses search box: [stm_courses_searchbox]

Parameters available: style - style_1/style_2

Example:

[stm_courses_searchbox style="style_1"]

2. Courses Carousel: shows the courses carousel: [stm_lms_courses_carousel]

Settings available:

  • title (enter the module title)

  • title_color (change the color of the title, example #fafafa)

  • query (sorting options - none/popular/free/rating; set by default as "none")

  • prev_next (enable/disable Previous/Next buttons; set by default as “enable”)

  • remove_border (enable/disable border removing; set by default "disable")

  • show_categories (enable/disable display of categories; set by default as "disable")

  • pagination (disable or enable paginations, set by default as "disable")

  • per_row (specify the number of courses per row; by default — 6)

  • taxonomy (term ID of stm_lms_course_taxonomy taxonomy, only if show_categories is "enable". example "233,255,321")

Example:

[stm_lms_courses_carousel title="Sample Title" title_color="#000000 
query="free" prev_next="disable" remove_border="enable" pagination="enable"]

3. Courses Categories: shows the courses categories [stm_lms_courses_categories]

Settings available: style - style_1/style_2/style_3/style_4

  • taxonomy (term ID of stm_lms_course_taxonomy — taxonomy; example "233,255,321")

Example:

[stm_lms_courses_categories style="style_1" taxonomy=”23,56”]

4. Courses Grid: show the courses grid: [stm_lms_courses_grid]

Settings available:

  • hide_top_bar (shows the top bar - hidden/showing; by default — "showing")

  • title (module title)

  • hide_load_more (hide/show the button Load More - hidden/showing, by default — "showing")

  • hide_sort (hide/show sorting option - hidden/showing; by default — "showing")

  • per_row (the number of Courses Per Row; by default 6)

  • image_size (sets the image size - thumbnail/medium/large)

  • posts_per_page (number of courses to show on the page)

Example:

[stm_lms_courses_grid title="Sample Title" hide_top_bar="hidden" 
hide_load_more="showing" per_row="3" posts_per_page="6" hide_sort="hidden" image_size="medium]

Follow to Settings > Media from your dashboard panel to set the sizes for thumbnail/medium/large.

5. Featured Teacher: shows Featured Teacher: [stm_lms_featured_teacher]

Settings available:

  • instructor (Instructor ID)

  • position (Instructor Position)

  • bio (Instructor Bio)

  • image (enter image ID)

Example:

[stm_lms_featured_teacher instructor="5" position=“Sample Position” 
bio="Sample Bio" image="1150"]

6. Instructors Carousel: shows the Instructors carousel: [stm_lms_instructors_carousel]

Settings available:

  • title (module title)

  • title_color (changes the color of the title)

  • per_row (number of Instructors per row; by default 6)

  • per_row_md (number of Instructors per row on Notebook; by default 4)

  • per_row_sm (number of Instructors per row on Tablet; by default 2)

  • per_row_xs (number of Instructors per row on Mobile; by default 1)

  • style (change the display style - style_1/style_2; by default "style_1")

  • sort (shows the option Sort By - default/rating)

  • prev_next (Enable/Disable Previous and Next Buttons; by default "enable")

  • pagination (Enable/Disable Previous and Next Buttons, by default "disable")

Example:

[stm_lms_instructors_carousel title="Sample Title" title_color="#000000" 
style="style_1" sort="rating" per_row_md="3" per_row_sm="1" pagination="enable"]

7. Recent Courses: shows Recent courses: [stm_lms_recent_courses]

Settings available:

  • posts_per_page (Number of courses to show on the page)

  • image_size (sets the image size - thumbnail/large/medium)

  • per_row (the number of courses per row)

  • style (changes display style - style_1/style_2; by default "style_1")

Example:

[stm_lms_recent_courses posts_per_page="5" image_size="large" per_row="3" 
style="style_2]

8. Single Course Carousel: shows the carousel with a single course: [stm_lms_single_course_carousel]

Settings available:

  • query (Sorting options - none/popular/free/rating, by default "none")

  • prev_next (Enable/Disable Previous and Next Buttons; by default "enable")

  • pagination (Enable/Disable pagination; by default "disable")

  • taxonomy (term ID of stm_lms_course_taxonomy taxonomy, example "233,255,321")

Example:

[stm_lms_single_course_carousel query="free" taxonomy=”23,56” 
pagination="enable" prev_next="enable"]

For Pro version of the plugin

9. Certificate checker: enables the certificate checker: [stm_lms_certificate_checker]

Settings available:

  • title (module title)

Example:

[stm_lms_certificate_checker title="Certificate Verification"]

10. Course Bundles: enables course bundles option: [stm_lms_course_bundles]

Settings available:

  • title (module title)

  • columns (number of columns - 2/3; by default 3)

  • posts_per_page (number of posts per page)

Example:

[stm_lms_course_bundles title="My Bundles" columns="2" posts_per_page="2"]

11. Google Classrooms grid view: shows the grid view of Google classrooms: [stm_lms_google_classroom]

Settings available:

  • title (module title)

  • number (number of posts on the page)

Example:

[stm_lms_google_classroom title="Sample Title" number="6"]

Last updated