GS Team Member’s shortcode usage
Note : From Version 1.10.1 shortcode generator added with preview. Select theme & other parameters. Shortcode will generate with id like [gsteam id=1]
[gsteam id=1]
[gs_team theme="gs_tm_theme5"] (Old Style)
GS Team Member’s Shortcode attributes Usage
Note : From Version 1.10.1 shortcode generator added with preview. NO NEED to add attributes. After selecting options, Shortcode will generate with id like [gsteam id=#]
[gsteam id=1]
[gs_team num="10" cols="3" theme="gs_tm_theme8" group="hr"] (Old Style)
Shortcode PHP Usage
Template Usage – Add the shortcode anywhere you need to display GS Team Member in template files (header.php, front-page.php, etc.)
<?php echo do_shortcode( '[gsteam id=1]' ); ?>
Note : Before Version 1.9.14 Shortcode attributes need to add & keeping for old users.
From Version 1.10.1 NO NEED to add attributes & will delete the below table later.
No. | Attribute | Default value | options | Description |
---|---|---|---|---|
1 | num | -1 | -1 for all or any number | By default it’ll display all the Team Members but you can control it by num attribute. |
2 | order | DESC | DESC ASC | Normally Membersw 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. |
3 | orderby | date | ID title modified rand | Use preffered orderby attribute |
4 | group | all | Team category slug, comma separated. | To get your category slug, go to GS Team -> Team Group. Here you will find Team Groups & all the slugs |
5 | theme | gs_tm_theme1 | gs_tm_theme1 gs_tm_theme2 gs_tm_theme3 gs_tm_theme4 gs_tm_theme5 gs_tm_theme6 gs_tm_theme7 gs_tm_theme8 gs_tm_theme9 gs_tm_theme10 gs_tm_theme11 gs_tm_theme12 gs_tm_theme13 gs_tm_theme14 gs_tm_theme15 gs_tm_theme16 gs_tm_theme17 gs_tm_theme18 gs_tm_theme19 gs_tm_theme20 gs_tm_grid2 gs_tm_drawer2 | Select preferred theme to display Members |
6 | cols | 3(4 columns) | 6 (2 columns) 4 (3 columns) 3 (4 columns) | Columns are based on 12 grids Bootstarp, so follow columns value |
7 | 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_tm_theme9 |
8 | panel | right | right left center | If you wish to display Team Members by custom order use mentioned shortcode, for custom order orderby=”menu_order” is mandatory.[gs_team cols="3" theme="gs_tm_theme1" orderby="menu_order"] |