NameDrop Audio Plugin - Shortcode Debug
Testing different ways URLs and usernames are processed by the shortcode handler.
Test 1: Direct Username
Input: nd-rohil
🔊
Should use data-audio-source="nd-rohil" and make API call
Test 2: NMDRP.xyz Profile URL (Editor Format)
Input: https://nmdrp.xyz/nd-rohil
🔊
Should extract username "nd-rohil" and use data-audio-source="nd-rohil"
Test 3: NameDrop.io Profile URL (Editor Format)
Input: https://namedrop.io/nd-rohil
🔊
Should extract username "nd-rohil" and use data-audio-source="nd-rohil"
Test 4: Direct Audio URL
Input: https://example.com/audio.mp3
Should use data-audio-url for direct audio file and create audio element
Test 5: BROKEN - What Was Happening Before (Profile URL as Direct Audio)
Input: https://nmdrp.xyz/nd-rohil (treated as direct audio URL)
🔊 (broken - will try to fetch profile page as audio)
❌ This would try to fetch https://nmdrp.xyz/nd-rohil as an audio file (wrong!)
This is what was happening before our fix.
Test 6: Check Browser Console
Open browser developer tools (F12) and check the console for debug messages.
The JavaScript should log what it finds for each element and how it processes them.