Plugin Help Center

Find guides, tutorials, and answers to common questions about our WordPress plugins.

Home > Documentation > Features & Usage > Using shortcodes

Using shortcodes

Liyanit Responsive Slider provides shortcode support that allows you to display your sliders anywhere on your WordPress website where shortcodes are supported.

Shortcodes are useful when you want to place a specific slider inside a page, post, widget, or other supported WordPress content area without writing custom code.


Basic Shortcode

The basic shortcode for displaying a slider is:

[liyan_gs_slider id="123"]

Replace 123 with the Slider ID you want to display.

For example:

[liyan_gs_slider id="245"]

This will display the slider associated with Slider ID 245.


How to Find the Slider ID

Each slider created with Liyanit Responsive Slider has its own unique ID.

To find the ID:

  1. Open the WordPress Dashboard.
  2. Go to Slider Manager.
  3. Open the slider you want to display.
  4. Find its WordPress Post ID.
  5. Copy the ID.
  6. Add it to the shortcode.

For example, if the Slider ID is 245:

[liyan_gs_slider id="245"]

Adding a Shortcode to a Page

You can add the shortcode to any WordPress page.

Gutenberg Editor

  1. Open the page in the WordPress Editor.
  2. Click Add Block (+).
  3. Search for Shortcode.
  4. Add the Shortcode block.
  5. Paste your slider shortcode.
  6. Save or publish the page.

Example:

[liyan_gs_slider id="123"]

Adding a Shortcode to a Post

Shortcodes can also be added to WordPress posts.

Open the post where you want to display the slider and add the shortcode at the required location.

[liyan_gs_slider id="123"]

After publishing or updating the post, the slider will appear in that location.


Using Shortcodes in Widgets

If your theme or WordPress configuration supports shortcodes in a widget area, you can also place the slider inside a widget.

Add a Shortcode or compatible content widget and enter:

[liyan_gs_slider id="123"]

The slider will be rendered inside the selected widget area.

Need Help?

If you have any issues installing the plugin, contact our support team.