Title: PHP: Dynamic Shortcode for generated slider
Last modified: March 22, 2019

---

# PHP: Dynamic Shortcode for generated slider

 *  Resolved [wpblogwriter](https://wordpress.org/support/users/wpblogwriter/)
 * (@wpblogwriter)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-dynamic-shortcode-for-generated-slider/)
 * Hi,
    I haven’t seen any slider with such a function, so maybe, yxou like ti and
   implement it some day..
 * In my case I have custom post types (having own URLs for sure) and there I want
   to display for each an individual slider. The pages are not built with Gutenberg,
   they are generated using a fixed template.
 * So what would be cool would be something like:
    <?php $images = <array of images
   >; do_shortcode(“[smartslider3 slides=$images]”); ?> .. well something like that…
 * To make it even more easy to work with, maybe
    do_shortcode(“[smartslider3 slides
   =$images template=1”]);
 * where template corresponds to an empty slider but where all the settings can 
   be taken from..
 * Anyways, just an idea..
 * WBW

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Gabor](https://wordpress.org/support/users/nextendweb_gabor/)
 * (@nextendweb_gabor)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-dynamic-shortcode-for-generated-slider/#post-11343623)
 * Hi [@wpblogwriter](https://wordpress.org/support/users/wpblogwriter/)!
 * This is already on our to do list, just our current system couldn’t work with
   it, as we are working from cache, meaning the slider is already done before it
   is published anywhere, so it couldn’t take data based on which page it is published
   on. But hopefully we can implement this soon!
 *  Thread Starter [wpblogwriter](https://wordpress.org/support/users/wpblogwriter/)
 * (@wpblogwriter)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-dynamic-shortcode-for-generated-slider/#post-11344017)
 * Thank you for your quick and positive answer.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP: Dynamic Shortcode for generated slider’ is closed to new replies.

 * ![](https://ps.w.org/smart-slider-3/assets/icon.svg?rev=2307688)
 * [Smart Slider 3](https://wordpress.org/plugins/smart-slider-3/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-slider-3/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-slider-3/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-slider-3/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-slider-3/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-slider-3/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 2 replies
 * 2 participants
 * Last reply from: [wpblogwriter](https://wordpress.org/support/users/wpblogwriter/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/php-dynamic-shortcode-for-generated-slider/#post-11344017)
 * Status: resolved