audio tags no longer working
You may need to update your shortcode function to generate the audio player using proper HTML markup instead of returning the raw shortcode text. Here’s an example: function myshortcode_shortcode() { $audio_url=”path/file.mp3″; $audio_markup = ‘<audio controls><source src=”‘ . esc_url($audio_url) . ‘” type=”audio/mp3″></audio>’; return $audio_markup; }