Enhance WordPress Media Posts with MP3 & Video Badges That Show Duration

Plugin Name:
Version: 1.3
Author: WpScriptly
Tags: audio, video, podcast, badge, duration, media
If you regularly publish audio or video content on your WordPress site, the plugin is a powerful way to enhance your media presentation. This lightweight plugin automatically detects embedded media in your posts and displays stylish, animated badges that link to your content—complete with MP3 duration display.

🔥 Key Features
- Automatic Media Detection: Instantly recognizes MP3s, embedded videos, and WordPress media blocks.
- Animated Badges with Icons: Visually engaging icons grab your readers’ attention.
- MP3 Duration Display: Duration is automatically extracted and shown for audio files.
- Multi-Platform Support: Compatible with YouTube, Vimeo, Dailymotion, and native WordPress media.
- Responsive Design: Optimized for mobile and desktop viewing.
- Customizable Appearance: Style your badges by editing a single CSS file.
📺 Supported Media Types
- MP3 audio files
- WordPress audio blocks
- HTML5 video
- YouTube videos
- Vimeo videos
- Dailymotion videos
- WordPress video blocks
⚙️ How to Use
- Upload the
media-badge
folder to your/wp-content/plugins/
directory. - Activate the plugin from your WordPress admin.
- Insert the shortcode
into any post or page where you want badges to appear.
Once added, the plugin automatically finds and badges your media content—no manual setup required.
❓ FAQ
Does it work with Gutenberg?
Yes, it fully supports both the Classic Editor and Gutenberg blocks, including audio/video blocks.
Can I change the look of the badges?
Absolutely! Just edit the styles in css/media-badge.css
using the following classes:
.media-badge
.audio-badge
.video-badge
.mp3-duration
.icon
🆕 What’s New in Version 1.3
- Support for additional video platforms
- Improved error handling and pattern matching
- Enhanced media detection
- CSS moved to a separate, editable file
🖼️ Screenshots
- Audio badge with duration
- Video badge in action
- Multiple badges displayed in a post
💬 Support
Need help? Visit WpScriptly.com or get community support.
Dowload at: https://wpscriptly.com/community/space/freecommunitypluginsscriptscoding/post/enhance-wordpress-media-posts
Free to join for all files!
*These scripts and plugins are provided as is with no guarantees or warranties. If you need assistance or run into issues, feel free to reach out via the contact page.
Comments: