GS Coach’s shortcode usage
[gs_coaches theme="gs_coach_grid_1"]
GS Coach’s Shortcode attributes Usage
[gs_coaches num="6" theme="gs_coach_grid_1" cols="6" group="web-development" cats_name="none" desc_limit="100" order="DESC" orderby="date"]
Shortcode PHP Usage
<?php echo do_shortcode( '[gs_coaches theme="gs_coach_grid_1"]' ); ?>
Template Usage – Add the shortcode anywhere you need to display GS Coaches in template files (header.php, front-page.php, etc.)
<?php echo do_shortcode( '[gs_coaches num="6" theme="gs_coach_grid_1" cols="6" group="web-development" cats_name="none" desc_limit="100" order="DESC" orderby="date"]' ); ?>
No. | Attribute | Default value | options | Description |
---|---|---|---|---|
1 | num | -1 | -1 for all or any number | By default it’ll display all the Coaches but you can control it by num attribute. |
2 | theme | gs_coach_grid_1 | gs_coach_grid_1 gs_coach_grid_2 gs_coach_grid_3 gs_coach_circle_1 gs_coach_circle_2 gs_coach_circle_3 gs_coach_circle_4 gs_coach_horizontal_1 gs_coach_horizontal_2 gs_coach_horizontal_3 gs_coach_horizontal_4 gs_coach_horizontal_5 gs_coach_horizontal_6 gs_coach_list_1 gs_coach_list_2 gs_coach_list_3 gs_coach_list_4 gs_coach_card_1 gs_coach_card_2 gs_coach_table_1 gs_coach_table_2 gs_coach_table_3 gs_coach_grey_1 gs_coach_grey_2 gs_coach_slider_1 gs_coach_slider_2 gs_coach_slider_3 gs_coach_popup_1 gs_coach_filter_1 | Select preferred theme to display Coaches |
3 | cols | 3(4 columns) | 6 (2 Columns) 4 (3 columns) 3 (4 columns) | Number of column/s to display coaches. Columns are based on 12 grids Bootstarp, so follow columns value |
4 | group | all | Coach category slug, comma separated. | To get your category slug, go to GS Coach -> Coach Group. Here you will find Coach Groups & all the slugs |
5 | cats_name | intitial | none | If 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_coach_filter_1 |
6 | desc_limit | 100 | Any Number | Set maximum number of characters in Coach details. Default 100 |
7 | order | DESC | DESC ASC | Normally Coaches 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. |
8 | orderby | date | ID title modified rand | Use preffered orderby attribute |