GS Project’s shortcode usage
[gs_projects theme="gs_project_theme1"]
GS Project’s Shortcode attributes Usage
[gs_projects theme="gs_project_theme7" num="10" cols="3" group="wordpress" cats_name="none" desc_limit="100" order="DESC" orderby="date"]
Shortcode PHP Usage
<?php echo do_shortcode( '[gs_projects theme="gs_project_theme11"]' ); ?>
Template Usage – Add the shortcode anywhere you need to display GS Projects in template files (header.php, front-page.php, etc.)
<?php echo do_shortcode( '[gs_projects theme="gs_project_theme7" num="10" cols="3" group="wordpress" 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 Projects but you can control it by *num* attribute. |
2 | order | DESC | DESC ASC | Normally Projects 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 | Project category slug, comma separated. | To get your category slug, go to GS Projects > Projects Group. Here you will find Project Groups & all the slugs |
5 | theme | gs_project_theme1 | gs_project_theme1 gs_project_theme2 gs_project_theme3 gs_project_theme4 gs_project_theme5 gs_project_theme6 gs_project_theme7 gs_project_theme7_1 gs_project_theme8 gs_project_theme9 gs_project_theme10 gs_project_theme11 | Select preferred theme to display Projects |
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_project_theme9 |
8 | desc_limit | 100 | Any Number | Set maximum number of characters in Project details. Default 100 |