{"id":289,"date":"2019-11-07T05:54:40","date_gmt":"2019-11-07T05:54:40","guid":{"rendered":"https:\/\/docs.gsplugins.com\/guide\/gs-coach\/shortcode-usage\/"},"modified":"2026-04-30T08:11:19","modified_gmt":"2026-04-30T08:11:19","slug":"shortcode-usage","status":"publish","type":"docs","link":"https:\/\/docs.gsplugins.com\/gs-coach\/shortcode-usage\/","title":{"rendered":"Shortcode Usage"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\" id=\"gs-coachs-shortcode-usage\">GS Coach\u2019s shortcode usage<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&#091;gs_coaches theme=&quot;gs_coach_grid_1&quot;]<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"gs-coachs-shortcode-attributes-usage\">GS Coach\u2019s Shortcode attributes Usage<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&#091;gs_coaches num=&quot;6&quot; theme=&quot;gs_coach_grid_1&quot; cols=&quot;6&quot; group=&quot;web-development&quot; cats_name=&quot;none&quot; desc_limit=&quot;100&quot; order=&quot;DESC&quot; orderby=&quot;date&quot;]<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"shortcode-php-usage\">Shortcode PHP Usage<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;?php echo do_shortcode( &#039;&#091;gs_coaches theme=&quot;gs_coach_grid_1&quot;]&#039; ); ?&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Template Usage \u2013 Add the shortcode anywhere you need to display GS Coaches in template files (header.php, front-page.php, etc.)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">&lt;?php echo do_shortcode( &#039;&#091;gs_coaches num=&quot;6&quot; theme=&quot;gs_coach_grid_1&quot; cols=&quot;6&quot; group=&quot;web-development&quot; cats_name=&quot;none&quot; desc_limit=&quot;100&quot; order=&quot;DESC&quot; orderby=&quot;date&quot;]&#039; ); ?&gt;<\/code><\/pre>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<table class=\"table table-bordered\">\n<tbody>\n  <tr>\n    <th>No.<\/th>\n    <th>Attribute<\/th>\n    <th>Default value<\/th>\n    <th>options<\/th>\n    <th>Description<\/th>\n  <\/tr>\n  <tr>\n    <td>1<\/td>\n    <td>num<\/td>\n    <td>-1<\/td>\n    <td>-1 for all or any number<\/td>\n    <td>By default, it\u2019ll display all the Coaches, but you can control it by <code class=\"\" data-line=\"\">num<\/code> attribute.<\/td>\n  <\/tr>\n  <tr>\n    <td>2<\/td>\n    <td>theme<\/td>\n    <td>gs_coach_grid_1<\/td>\n    <td>gs_coach_grid_1 <br> gs_coach_grid_2 <br> gs_coach_grid_3 <br> gs_coach_circle_1 <br> gs_coach_circle_2 <br> gs_coach_circle_3 <br> gs_coach_circle_4 <br> gs_coach_horizontal_1 <br> gs_coach_horizontal_2 <br> gs_coach_horizontal_3 <br> gs_coach_horizontal_4 <br> gs_coach_horizontal_5 <br> gs_coach_horizontal_6 <br> gs_coach_list_1 <br> gs_coach_list_2 <br> gs_coach_list_3 <br> gs_coach_list_4 <br> gs_coach_card_1 <br> gs_coach_card_2 <br> gs_coach_table_1 <br> gs_coach_table_2 <br> gs_coach_table_3 <br> gs_coach_grey_1 <br> gs_coach_grey_2 <br> gs_coach_slider_1 <br> gs_coach_slider_2 <br>\n    gs_coach_slider_3 <br> gs_coach_popup_1 <br> gs_coach_filter_1<\/td>\n    <td>Select preferred theme to display Coaches<\/td>\n  <\/tr>\n  <tr>\n    <td>3<\/td>\n    <td>cols<\/td>\n    <td>3(4 columns)<\/td>\n    <td>6 (2 Columns) <br>4 (3 columns)<br>3 (4 columns)<\/td>\n    <td>Number of column\/s to display coaches. Columns are based on 12 grids Bootstarp, so follow columns value<\/td>\n  <\/tr>\n  <tr>\n    <td>4<\/td>\n    <td>group<\/td>\n    <td>all<\/td>\n    <td>Coach category slug, comma separated.<\/td>\n    <td>To get your category slug, go to GS Coach -&gt; Coach Group. Here you will find Coach Groups &amp; all the slugs<\/td>\n  <\/tr>\n  <tr>\n    <td>5<\/td>\n    <td>cats_name<\/td>\n    <td>initial<\/td>\n    <td>none<\/td>\n    <td>If you display only one category\u2019s data then no need to display category names for filtering, passing the \u2018none\u2019 value will hide the filtering section. Applicable for <i>gs_coach_filter_1<\/i><\/td>\n  <\/tr>\n  <tr>\n    <td>6<\/td>\n    <td>desc_limit<\/td>\n    <td>100<\/td>\n    <td>Any Number<\/td>\n    <td>Set maximum number of characters in Coach details. Default 100<\/td>\n  <\/tr> \n  <tr>\n    <td>7<\/td>\n    <td>order<\/td>\n    <td>DESC<\/td>\n    <td>DESC<br>ASC<\/td>\n    <td>Normally, Coaches will display by descending order, latest will show first. But if you wish to display ascending order, oldest at first then pass <code class=\"\" data-line=\"\">order=&quot;ASC&quot;<\/code> parameter<\/td>\n  <\/tr>\n  <tr>\n    <td>8<\/td>\n    <td>orderby<\/td>\n    <td>date<\/td>\n    <td>ID <br> title <br> modified <br> rand<\/td>\n    <td>Use preferred <code class=\"\" data-line=\"\">orderby<\/code> attribute<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<div class=\"demo-buy-links\"> \n  <a class=\"btn btn-demo\" href=\"https:\/\/coach.gsplugins.com\/\" title=\"Coach Plugin Demo\" target=\"_blank\" rel=\"noopener\">Coach Plugin Demo<\/a>\n  <a class=\"btn btn-buy\" href=\"https:\/\/www.gsplugins.com\/product\/wordpress-coaches-plugin\/#pricing\" title=\"Buy Coach Plugin\" target=\"_blank\" rel=\"noopener\">Buy Coach Plugin<\/a>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":275,"menu_order":6,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","footnotes":""},"doc_tag":[],"class_list":["post-289","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/docs.gsplugins.com\/wp-json\/wp\/v2\/docs\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.gsplugins.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.gsplugins.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.gsplugins.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.gsplugins.com\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":8,"href":"https:\/\/docs.gsplugins.com\/wp-json\/wp\/v2\/docs\/289\/revisions"}],"predecessor-version":[{"id":2308,"href":"https:\/\/docs.gsplugins.com\/wp-json\/wp\/v2\/docs\/289\/revisions\/2308"}],"up":[{"embeddable":true,"href":"https:\/\/docs.gsplugins.com\/wp-json\/wp\/v2\/docs\/275"}],"next":[{"title":"Free vs Pro","link":"https:\/\/docs.gsplugins.com\/gs-coach\/free-vs-pro\/","href":"https:\/\/docs.gsplugins.com\/wp-json\/wp\/v2\/docs\/1109"}],"prev":[{"title":"Page Builder Support","link":"https:\/\/docs.gsplugins.com\/gs-coach\/page-builder-support\/","href":"https:\/\/docs.gsplugins.com\/wp-json\/wp\/v2\/docs\/5713"}],"wp:attachment":[{"href":"https:\/\/docs.gsplugins.com\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.gsplugins.com\/wp-json\/wp\/v2\/doc_tag?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}