Shortcode Usage

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.AttributeDefault valueoptionsDescription
1num-1-1 for all or any numberBy default it’ll display all the Projects but you can control it by *num* attribute.
2orderDESCDESC
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.
3orderbydateID title modified randUse preffered orderby attribute
4groupallProject category slug, comma separated.To get your category slug, go to GS Projects > Projects Group. Here you will find Project Groups & all the slugs
5themegs_project_theme1gs_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_theme11Select preferred theme to display Projects
6cols3(4 columns)6 (2 columns)
4 (3 columns)
3 (4 columns)
Columns are based on 12 grids Bootstarp, so follow columns value
7cats_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_project_theme9
8desc_limit100Any NumberSet maximum number of characters in Project details. Default 100