Replace audio links with jplayer using the_content filter
You well need to add a filter to the_content and alter the markup. This should replace the markup for <a> tags having URLs ending in .mp3, which you mentioned specifically in a comment. function replace_audio_link_cb_105555($match) { if (!empty($match[1]) && ‘.mp3’ == substr($match[1],-4)) { $your_long_block_of_markup = ‘<div id=”jquery_jplayer_#uniqueid” class=”jp-jplayer”></div> <div id=”jp_container_#uniqueid” class=”jp-audio”>… and so on …</div>’; … Read more