• I have a music blog where every post contains a link to a mp3 with an [audio]-tag surrounding them. Therefore, every post only consists of an audio player. I would like the next post/song to play when the previous post/song has ended, like if every post in the blog feed is a song in a playlist.

    Is it possible to make this playlist-like connection between separate audio-tags?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey tobbger,

    You can create a playlist by below shortcode:
    [playlist ids="23,21"]

    Give media post IDs with comma separated values.

    To get the post ID go to your media edit, in URL you will see
    wp-admin/post.php?post=23&action=edit, just copy numeric value and paste it in ids. It will create a playlist with all given music IDs, when the previous song will end next song will start automatically.

    I hope it will help you.

    Good Luck
    Juhi

    Thread Starter tobbger

    (@tobbger)

    Thanks Juhi!

    Where do I put this shortcode?

    Hey tobbger,

    Create a page and insert shortcode in page content area. Refer Screenshot : https://goo.gl/YmGH5l

    Good Luck
    Juhi

    Thread Starter tobbger

    (@tobbger)

    Thanks, but I don’t think this is the feature that I’m looking for. I don’t want to create an actual playlist on a specific page.

    Every song is posted in one post each. And when the player in the first post reaches the end, I want the next audio player in the next post to automatically play.

    Is this possible?

    See this image:
    https://imageshack.com/a/img921/1395/ST4vGR.jpg

    Moderator bcworkz

    (@bcworkz)

    This template code will output an audio player that plays all attached audio files in default order, without displaying the playlist:
    do_shortcode('[playlist tracklist="false"]');

    You could place it on your homepage template before the loop, or append it to the content of only the first post in the loop, or even replace the audio player in the content of only the first loop. Many other options are available.

    The player does display the current file playing. It kinda appears like it’ll only play the latest audio file at first, but the display changes with the files. You could suppress this portion with CSS if you wanted to.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Make [audio]-player play next song’ is closed to new replies.