Shortcode Usage

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.AttributeDefault valueoptionsDescription
1num-1-1 for all or any numberBy default it’ll display all the Books but you can control it by num attribute.
2orderDESCDESC
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.
3orderbydateID
title
modified
rand
Use preffered orderby attribute
4groupallBook 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
5themegs_book_theme1gs_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_theme11Select preferred theme to display Books
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_book_theme9
8desc_limit100Any NumberSet maximum number of characters in Book details. Default 100