Remove HTML content if attribute is not set / variable attributes
I would prefer two array of images, captions. For example: I have added comments on the code for better understanding. function wpse216239_slider_shortcode( $atts , $content = null ) { // Attributes $atts = shortcode_atts( array( ‘slides’ => ”, // one master attribute for slides ‘captions’ => ” // one master attribute for captions ), $atts, … Read more