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
- The topic ‘PHP: Dynamic Shortcode for generated slider’ is closed to new replies.