Answer the question
In order to leave comments, you need to log in
How to display a slider using shortcodes in wordpress?
How can I create a slider element using shortcodes so that
the pictures in the slider switch every 5 seconds
so that there are buttons for switching pictures
so that pictures are added to the slider using a shortcode
Example:
[wp_sl]
[img]
[img]
[/wp_sl]
.....
If we can make a slider, for example, based on the slick.js js plugin and wrap the output of the shortcode in the slider.item entity,
then how is it possible to transfer the image through the shortcode from the admin panel?
Answer the question
In order to leave comments, you need to log in
Passing parameters to the shortcode looks like this:
[wp_sl files="img1,img2,img3"]
In the shortcode, we get the parameter and split it into parts:
extract(shortcode_atts(array( 'files' => '' ), $atts));
$files = explode(",", $files);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question