Generate Shortcode
GS WooCommerce Product Slider’s Generate Shortcode options available only at PRO version.
GS WooCommerce Product Slider’s shortcode usage
Basic Usage
[gs_wps]
Shortcode attributes Usage
[gs_wps id="" posts="5" order="ASC" product_cat="singles, albums" theme="gs-effect-2" columns="3" autoplay="true" pause="false" inf_loop="false" speed="1200" timeout="3000" nav_speed="1100" nav="none" dots_nav="false" prod_tit_limit="50"]
Note : product_cat attribute will NOT work at PRO version, From Menu : GS Plugins > Generate Shortcode, you can set your query then add the id attribute.
No. | Attribute | Default value | options | Description |
---|---|---|---|---|
1 | posts | 10 | Any Number | By default it’ll display 10 Products as it is set total number of product in slider at Woo Product Settings but you can control by posts attribute. |
2 | order | DESC | DESC / ASC | Normally Products 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 | product_cat | all | Product category slug, comma separated. | To get your category slug, go to Products -> Categories. Here you will find Product categories & all the slugs. Note : product_cat attribute will work only at lite version |
4 | id | none | Generate your query like all category products or selected category / exclude category, all products / featured / free & many more | product_cat attribute will NOT work at PRO version, From Menu : GS Plugins > Generate Shortcode, you can set your query then add the id attribute |
5 | theme | gs-effect-1 | gs-effect-1 gs-effect-2 gs-effect-3 gs-effect-4 gs-effect-5 gs-effect-6 gs-effect-7 gs-effect-8 gs-effect-9 gs-effect-10 | Select preferred theme for hover effect |
6 | columns | 4 | 1 / 2 / 3 / 4 / 5 / 6 | Select number of Product columns, Default 4 columns |
7 | autoplay | true | true / false | Enable / Disable Autoplay slider. Default On (true) |
8 | pause | true | true / false | Enable / Disable, Stop on Hover slider. Default On (true) |
9 | inf_loop | true | true / false | Enable / Disable Inifnity loop. Duplicates last & first Product to get loop illusion. Default On (true) |
10 | speed | 1000 | Any Number | Autoplay Speed in Millisecond. Default 1000 |
11 | timeout | 2500 | Any Number | Autoplay interval timeout in Millisecond. Default 2500 |
12 | nav_speed | 1000 | Any Number | Navigation speed in Millisecond. Default 1000 |
13 | nav | initial | initial / none | Enable / Disable Navigation (next / prev). Default On (initial) |
14 | dots_nav | true | true / false | Enable / Disable Dots Navigation. Default On (true) |
15 | prod_tit_limit | 15 | Any Number | Maximum number of characters in Product title. Default 15 |