Gallery with thumbnail slider Shortcodes

Below, you’ll find a detailed guide on how to add the Gallery with thumbnail slider Shortcodes to your WordPress website, including their parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Gallery with thumbnail slider Plugin shortcodes not to show or not to work correctly.

Before starting, here is an overview of the Gallery with thumbnail slider Plugin and the shortcodes it provides:

Plugin Icon
Gallery with thumbnail slider

"Gallery with Thumbnail Slider is a dynamic WordPress plugin that enables you to showcase images in an interactive slider format. It's perfect for displaying your photo collections beautifully."

★★★☆✩ (8) Active Installs: 3000+ Tested with: 6.1.4 PHP Version: false
Included Shortcodes:
  • [gwts_gwl_gallery_slider]
  • [gwts_gwl_galleries_listing]

Gallery with thumbnail slider [gwts_gwl_gallery_slider] Shortcode

The GWTS Gallery Slider shortcode is a simple yet powerful tool for displaying image galleries. This shortcode, when added to a page, fetches and displays a gallery slider based on the ID provided. The PHP code attached to this shortcode extracts the ‘id’ attribute from the shortcode, and passes it to the ‘gwts_gwl_shortcode_gallery_slider’ function. This function then handles the task of fetching and displaying the gallery.

Shortcode: [gwts_gwl_gallery_slider]

Parameters

Here is a list of all possible gwts_gwl_gallery_slider shortcode parameters and attributes:

  • id – Specifies the unique ID of the gallery slider

Examples and Usage

Basic Example – Showcases a simple implementation of the gallery-with-thumbnail-slider plugin shortcode to display a gallery slider by referencing the ID.

[gwts_gwl_gallery_slider id=1 /]

Advanced Examples

Illustrates a more complex usage of the gallery-with-thumbnail-slider plugin shortcode. In this case, the shortcode is used with multiple parameters/attributes to customize the display of the gallery slider.

[gwts_gwl_gallery_slider id=2 title="My Gallery" /]

In the example above, the shortcode is used to display a gallery slider with the ID of 2 and the title “My Gallery”. If the gallery with the specified ID is not found, the plugin will attempt to load a gallery with the title “My Gallery”.

Another advanced usage might involve specifying additional parameters such as the number of thumbnails to display, the transition effect, or the autoplay speed. Note that these additional parameters would only work if they are supported by the plugin.

[gwts_gwl_gallery_slider id=3 title="Another Gallery" thumbnails=5 transition="fade" autoplay=3000 /]

In the example above, the shortcode is used to display a gallery slider with the ID of 3, the title “Another Gallery”, a maximum of 5 thumbnails, a “fade” transition effect, and an autoplay speed of 3000 milliseconds.

PHP Function Code

In case you have difficulties debugging what causing issues with [gwts_gwl_gallery_slider] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode('gwts_gwl_gallery_slider', 'gwts_gwl_gallery_slider_shortcode');

Shortcode PHP function:

function gwts_gwl_gallery_slider_shortcode($atts){
	$arry_arg = shortcode_atts(array('id'=>''),$atts);
	return gwts_gwl_shortcode_gallery_slider($arry_arg['id']);
}

Code file location:

gallery-with-thumbnail-slider/gallery-with-thumbnail-slider/gwts-shortcode.php

Gallery with thumbnail slider [gwts_gwl_galleries_listing] Shortcode

The GWTS Gallery with Thumbnail Slider shortcode is a powerful tool for displaying galleries. The shortcode (add_shortcode(‘gwts_gwl_galleries_listing’, ‘gwts_gwl_gallery_thumb_shortcode’)) allows you to specify the number of gallery items to display.

Shortcode: [gwts_gwl_galleries_listing]

Parameters

Here is a list of all possible gwts_gwl_galleries_listing shortcode parameters and attributes:

  • no_of_items – defines the number of gallery items to display

Examples and Usage

Basic example – A simple usage of the shortcode to display 12 items in the gallery.

[gwts_gwl_galleries_listing no_of_items=12 /]

Advanced examples

Displaying a different number of items in the gallery. This shortcode will display 20 items instead of the default 12.

[gwts_gwl_galleries_listing no_of_items=20 /]

Displaying the minimum number of items in the gallery. This shortcode will display only one item.

[gwts_gwl_galleries_listing no_of_items=1 /]

Displaying the maximum number of items in the gallery. This shortcode will display 50 items.

[gwts_gwl_galleries_listing no_of_items=50 /]

Note: The ‘no_of_items’ parameter determines the number of items to be displayed in the gallery. Adjust this value according to your needs.

PHP Function Code

In case you have difficulties debugging what causing issues with [gwts_gwl_galleries_listing] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode('gwts_gwl_galleries_listing', 'gwts_gwl_gallery_thumb_shortcode');

Shortcode PHP function:

function gwts_gwl_gallery_thumb_shortcode($attr){
	$gallery_arry = shortcode_atts(array('no_of_items'=>'12'),$attr);
	return gwts_gwl_shortcode_display_gallery_list($gallery_arry['no_of_items']);
}

Code file location:

gallery-with-thumbnail-slider/gallery-with-thumbnail-slider/gwts-shortcode.php

Conclusion

Now that you’ve learned how to embed the Gallery with thumbnail slider Plugin shortcodes, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *