To get the image url from a Post Thumbnail in WordPress to display it in a template, I would use:
<?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'large'); $image_url = $image_url[0]; ?><?php echo $image_url;?>
I'm trying to do the same for a MP3 uploaded to a post.
I had a snippet a while back to get it done, but I don't know what happened to it.
How can I do the same for a MP3 uploaded to a post?