Title: create a playlist
Last modified: November 9, 2016

---

# create a playlist

 *  [mrhashemian](https://wordpress.org/support/users/mrhashemian/)
 * (@mrhashemian)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/create-a-playlist/)
 * Hi All,
    How can I create a Audio playlist by code? I don’t want add a playlist
   in WP panel, I want get audio address by some custom fields and use it for playlist.
 * excuse me for my bad English.
    please HELP me! _ [Mod note: moved from “accessibility”
   to “how to and troubleshooting”]
    -  This topic was modified 9 years, 6 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 6 months ago](https://wordpress.org/support/topic/create-a-playlist/#post-8416560)
 * Here’s one way. Assume you upload two audio files which receive the IDs 85 and
   86. If you did this via the create playlist from add media, it would create a
   shortcode
 * `[playlist ids="85,86"]`
 * so, if you wanted to generate the output of that from PHP, you could just do
 * `<?php echo do_shortcode( '[playlist ids="85,86"]' ); ?>`
 *  Thread Starter [mrhashemian](https://wordpress.org/support/users/mrhashemian/)
 * (@mrhashemian)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/create-a-playlist/#post-8416623)
 * Thanks
    How can I found the music ID? In fact I don’t want use ID, How can I 
   use a address? (like: dl.domain.com/example.mp3)
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 6 months ago](https://wordpress.org/support/topic/create-a-playlist/#post-8416651)
 * You can get the IDs by looking in the media library.
 * You can see how that shortcode gets expanded into a playlist here: `http://kevindurrmusic.
   com/discography/`
 *  Thread Starter [mrhashemian](https://wordpress.org/support/users/mrhashemian/)
 * (@mrhashemian)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/create-a-playlist/#post-8416687)
 * I can’t use ID
    Is this anyway I can add playlist without music ID?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 6 months ago](https://wordpress.org/support/topic/create-a-playlist/#post-8416728)
 * here’s the full defininition for using the built-in playlist shortcode
 * [https://codex.wordpress.org/Playlist_Shortcode](https://codex.wordpress.org/Playlist_Shortcode)
 * If you need to do something else, you could look for playlist plugins.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘create a playlist’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/create-a-playlist/#post-8416728)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
