I am trying to get songs name and url from a playlist that is created. Playlist is generated dynamically when a post is created. I will have to loop through those posts and get playlist which I want to split and display name, duration etc.
I have searched but all I can find is plugins for those playlists.
I want to split the audio files form the playlist of post and display only names of the songs in some part of my website.
I can display single audio file as
$music_file = get_template_directory_uri() . "/sounds/music.mp3";
echo do_shortcode('[audio mp3=' . $music_file . ']');
but I want to get all the audio files from playlist and loop through them individually and create a custom display of the playlist.
Update
For example I can get individual images from gallery by using $gallery = get_post_gallery_images( $post ). Is there a function that can do the same for audio playlist.
Playlist is created from media upload in editor
