Shortcode Usage

GS Course’s shortcode usage
[gs_courses theme="gs_course_grid_1"]
GS Course’s Shortcode attributes Usage
[gs_courses num="6" theme="gs_course_grid_1" cols="3" group="" cats_name="none" desc_limit="" order="DESC" orderby="date"]
Shortcode PHP Usage
<?php echo do_shortcode( '[gs_courses theme="gs_course_grid_1"]' ); ?>

Template Usage – Add the shortcode anywhere you need to display GS Course in template files (header.php, front-page.php, etc.)

<?php echo do_shortcode( '[gs_courses num="6" theme="gs_course_grid_1" cols="3" group="" cats_name="none" desc_limit="" order="DESC" orderby="date"]' ); ?>
No.AttributeDefault valueoptionsDescription
1num-1-1 for all or any numberBy default it’ll display all the Courses but you can control it by num attribute.
2themegs_course_grid_1gs_course_grid_1 gs_course_horizontal_1 gs_course_horizontal_2 gs_course_list_1 gs_course_list_2 gs_course_card_1 gs_course_slider_1 gs_course_popup_1 gs_course_filter_1Select preferred theme to display Courses
3cols3(4 columns)6 (2 Columns)
4 (3 columns)
3 (4 columns)
Number of column/s to display courses. Columns are based on 12 grids Bootstarp, so follow columns value
4groupallCourse category slug, comma separated.To get your category slug, go to GS Course > Course Group. Here you will find Course Groups & all the slugs
5cats_nameintitialnoneIf you display only one category’s data then no need to display category names for filtering, passing the ‘none’ value will hide the filtering section. Applicable for gs_course_filter_1
6desc_limit100Any NumberSet maximum number of characters in Course details. Default 100
7orderDESCDESC
ASC
Normally Courses will display by descending order, latest will show first. But if you wish to display ascending order, oldest at first then pass order="ASC" parameter.
8orderbydateID
title
modified
rand
Use preffered orderby attribute