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; }

Media Library Issues

What you need is a way to scan your uploads directory and register any unregistered files. There are plugins that can help with this. One such plugin is “Add From Server“. This allows you to import media and files into the WordPress uploads manager from the server’s file system. Using this plugin, you can import … Read more

stop resize button for wordpress media

That’s a bit tricky because WordPress doesn’t offer this functionality out of the box. But a workaround would be to stop WordPress from generating additional image sizes for uploaded images. But it will apply to all image uploads, not just those in the WooCommerce product gallery. If you wanted to try it out, here’s the … Read more

WordPress MediaElement audio player won’t seek and resets back to the start when files are locally hosted

Most likely the server is not handling byte range requests to support seek. Test if you get a 206 response from e.g: curl https://example.com/test.ogg -i -H “Range: bytes=0-1023″ Try (temporary) setting the preload=”auto” to your shortcodes to fully download the audio on page loads. See more here: How to test: https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests#requesting_a_specific_range_from_a_server Server ogg media config … Read more