GS Book Showcase’s shortcode usage
[gs_book_showcase theme="gs_book_theme1"]
GS Book Showcase’s Shortcode attributes Usage
[gs_book_showcase num="10" theme="gs_book_theme1" cols="4" group="cookbook,fiction" cats_name="" desc_limit="100" order="DESC" orderby="date"]
Shortcode PHP Usage
<?php echo do_shortcode( '[gs_book_showcase theme="gs_book_theme7"]' ); ?>
Template Usage – Add the shortcode anywhere you need to display GS Book Showcase in template files (header.php, front-page.php, etc.)
<?php echo do_shortcode( '[gs_book_showcase num="10" theme="gs_book_theme1" cols="4" group="cookbook,fiction" cats_name="" 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 Books but you can control it by num attribute. |
2 | order | DESC | DESC ASC | Normally Books 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 | Book Showcase category slug, comma separated. | To get your category slug, go to GS Book Showcase -> Book Showcase Group. Here you will find Book Showcase Groups & all the slugs |
5 | theme | gs_book_theme1 | gs_book_theme1 gs_book_theme2 gs_book_theme3 gs_book_theme4 gs_book_theme7 gs_book_theme7_1 gs_book_theme8 gs_book_theme9 gs_book_theme10 gs_book_theme11 | Select preferred theme to display Books |
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_book_theme9 |
8 | desc_limit | 100 | Any Number | Set maximum number of characters in Book details. Default 100 |