GS Pinterest Portfolio’s shortcode usage
Note: From Version 2.0.9 shortcode generator was added with preview.
Select theme & other parameters. Shortcode will generate with id like [gs_pinterest id=1]
[gs_pinterest id=1]
[gs_pinterest user="pinterest" theme="gs_pin_theme5" cols="4"] (Old Style)
GS Pinterest Portfolio’s Shortcode attributes Usage
Note: From Version 2.0.9 shortcode generator was added with preview.
NO NEED to add attributes. After selecting options, Shortcode will generate with id like [gs_pinterest id=#]
[gs_pinterest id=1]
[gs_pinterest user="pinterest" board="breakfast-favorites" count="20" theme="gs_pin_theme5" cols="4"] (Old Style)
Shortcode PHP Usage
Template Usage – Add the shortcode anywhere you need to display GS Pinterest Portfolio in template files (header.php, front-page.php, etc.)
<?php echo do_shortcode( '[gs_pinterest id=2]' ); ?>
Note: Before Version 2.0.9, Shortcode attributes need to add & kept for old users.
From Version 2.0.9 NO NEED to add attributes & we will delete the below table later.
| No. | Attribute | Default value | options | Description |
|---|---|---|---|---|
| 1 | user | None | Pinterest User | Add your Pinterest User |
| 2 | board | None | Pinterest Board Name | Add Pinterest Board Name to display pins from specific Board |
| 3 | count | 10 | 25 | Set number of pins to display. Default 10, max 50 |
| 4 | theme | gs_pin_theme1 | gs_pin_theme1 gs_pin_theme2 gs_pin_theme3 gs_pin_theme4 gs_pin_theme5 |
Select preferred theme to display Pins |
| 5 | cols | 4 | 3 4 5 6 |
Number of column/s to display pins |