Shortcode Usage

GS YouTube Gallery’s shortcode usage
[gs_ytgal theme="gs_ytgal_grid"]
GS YouTube Gallery’s Shortcode attributes Usage
[gs_ytgal channel_id="UCANLZYMidaCbLQFWXBC95Jg" count="10" orderby="date" theme="gs_ytgal_grid" cols="6" video_height="350" title_limit="40" desc_limit="120"]
Shortcode PHP Usage
<?php echo do_shortcode( '[gs_ytgal theme="gs_ytgal_grid"]' ); ?>

Template Usage – Add the shortcode anywhere you need to display GS YouTube Gallery in template files (header.php, front-page.php, etc.)

<?php echo do_shortcode( '[gs_ytgal channel_id="UCANLZYMidaCbLQFWXBC95Jg" count="10" orderby="date" theme="gs_ytgal_grid" cols="6" video_height="350" title_limit="40" desc_limit="120"]' ); ?>
No.AttributeDefault valueoptionsDescription
1channel_idNoneYouTube Channel IDAdd your YouTube Channel ID. https://www.youtube.com/channel/UCB0SU0JDMMECS9BGJtD7lzg Here UCB0SU0JDMMECS9BGJtD7lzg is the channel Id. Note : If you add both Channel Id & Playlist Id at Settings then videos from Playlist will display.
2count1050Set number of Videos to display. Default 10, max 50
3orderbydatedate
rating
title
videoCount
viewCount
Select preferred orderby value to display Videos.
4themegs_ytgal_gridgs_ytgal_grid gs_ytgal_grid_details gs_ytgal_hoverpop gs_ytgal_right_info gs_ytgal_left_info gs_ytgal_popup gs_ytgal_slider_popup
gs_ytgal_slider
Select preferred theme to display Videos
5cols3(4 columns)6 (2 columns)
4 (3 columns)
3 (4 columns)
Number of column/s to display videos. Columns are based on 12 grids Bootstarp, so follow columns value
6video_height350Any numeric value you need.Sometimes video heighs are different & layout can be broken. In that case you can set video height.
7title_limit40Any numeric value you need.Set maximum number of characters in Video Title. Default 40
8desc_limit120Any numeric value you need.Set maximum number of characters in Video details. Default 120