This is gonna sound stupid, but I couldn't find the answer anywhere: I need to have an attachment page for audio files (audio.php), but I have no idea how to display the media player on this page. When I use the_content(), it doesn't display the file itself.

I think I have to use the audio shortcode, but I don't know how to retrieve the id for audio files.

  • Check this out as it might be a duplicate question -> wordpress.stackexchange.com/questions/270862/… – demo7up May 7 '18 at 17:27
  • I read it, but I don't think it's what I need, it seems too complicated for something that should be pretty easy to do with "native" wordpress. – Sof May 11 '18 at 13:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.