Publishing and Shortcodes

Publish sliders with WordPress shortcodes and preview the final output before placing it on a page.

Publishing and Shortcodes

Open the Embed Manager

From the dashboard or builder, use the slider Embed action to open the embed manager. This gives you ready-to-copy publishing code for the current slider.

Copy the Shortcode

Each slider provides shortcode values that you can copy into posts, pages, or compatible widget areas.

Supported shortcode tags:

  • [zoro_slider]
  • [zoroslider]

Common Usage

Use the slider ID:

[zoro_slider id="123"]

The shorter alias tag is also supported:

[zoroslider id="123"]

You can also use the alias value where supported by the plugin workflow:

[zoro_slider id="zs-123"]

Use the PHP Snippet in Templates

If you are embedding the slider directly in a theme or template file, use:

<?php if (function_exists("zoro_slider")) { zoro_slider(123); } ?>

Alias usage is also supported:

<?php if (function_exists("zoro_slider")) { zoro_slider("zs-123"); } ?>

Where to Use It

You can place the shortcode in:

  • posts
  • pages
  • classic editor content
  • block editor shortcode blocks
  • widget areas that accept shortcodes

Preview Before Publishing

Use the builder preview before placing the shortcode on a live page. This helps confirm:

  • slide order
  • animations
  • layout size
  • media playback
  • navigation appearance
  • post placeholder output when using Source Type = Posts
  • JSON placeholder output when using Source Type = JSON import
  • YouTube placeholder and player output when using Source Type = YouTube Playlist

Important release note:

  • current documented source types in this version are Manual / Builder Slides, Posts, JSON import, and YouTube Playlist

Embed a Slider on a Page

Basic publishing flow:

  1. save the slider
  2. preview it
  3. open the embed manager
  4. copy the shortcode or PHP snippet
  5. paste it into a page, post, block, widget area, or template
  6. update the page and test on the front end

Post-Driven Sliders on the Front End

If the slider uses Source Type = Posts, the front end automatically resolves the saved slide template against the queried posts when the shortcode or PHP snippet renders.

That means:

  • each post becomes a slide
  • placeholders such as {{post_title}} and {{post_excerpt}} are replaced automatically
  • Featured Image slide backgrounds resolve from the current post thumbnail

This makes one saved slide design reusable for blog posts, portfolio items, team members, testimonials, and other custom post types.

JSON-Driven Sliders on the Front End

If the slider uses Source Type = JSON import, the front end automatically resolves the saved slide template against the JSON feed items when the shortcode or PHP snippet renders.

That means:

  • each JSON item becomes a slide
  • mapped placeholders such as {{post_title}} and {{featured_image}} can still be reused
  • direct JSON keys such as {{title}}, {{description}}, and {{image_url}} also work
  • JSON Image slide backgrounds resolve from the mapped Image URL Field

YouTube Playlist Sliders on the Front End

If the slider uses Source Type = YouTube Playlist, the front end automatically resolves the saved slide template against the fetched playlist items when the shortcode or PHP snippet renders.

That means:

  • each playlist video becomes a slide
  • direct placeholders such as {{title}}, {{description}}, {{video_url}}, and {{channel_title}} are replaced automatically
  • {{featured_image}} resolves from the playlist video thumbnail
  • {{video_embed}} can render a playable video inside an HTML layer

Use {{video_url}} when you only need a raw watch URL or button link.

Use {{video_embed}} when you want the video player itself to appear inside the slide.

This mode requires the configured YouTube API key to remain valid on the deployed site.