Shortcode not work in picture source srcset tag
i fix this with a new shortcode that generates the entire tag. Like this: function generate_image_tag($atts) { $atts = shortcode_atts( array( ‘img’ => ”, ‘title’ => ”, ‘theme_url’ => get_bloginfo(‘template_url’), ), $atts ); //File path details $file_info = pathinfo($atts[‘img’]); $file_dir = $file_info[‘dirname’] != ‘.’ ? $file_info[‘dirname’].”https://wordpress.stackexchange.com/” : ”; $file_url = $file_dir . $file_info[‘filename’]; $output=”<picture> <source … Read more