Why Add an MP3 Player to Your Website?Īdding an MP3 music player to your site will allow you to listen to all of the music you want without having to go to another source. Either way, having an MP3 music player on your website definitely has some advantages. Or, maybe you are trying to share files for others to enjoy. Now with the new WP_Query album mp3 source context you are able to modify the Searchable Player template to play your playlists or albums created with Audioigniter or MP3 Music Player by Sonaar in a matter of minutes and listen to your creations on your smart speaker or smart display.Sometimes you just want to be able to listen to some music straight from your WordPress website. To get the songs of a playlist, we need to populate the Songs of Album and Song of Album fields like this: For now, we just have the playlists, but we need the songs of those fetched playlists. Several WP Query arguments should be set to fetch the Audioigniter albums correctly: post_type = ai_playlist and post_status = publish. Since Audioigniter stores its songs in so-called Playlists, in the form of post_type => ai_playlist and post_meta_key => _audioigniter_tracks as an array, we have to use WP_Query album mp3 source context to fetch the songs. In this section, we will use the example that is related to Audioigniter. Fetching the Songs While Using Audioigniter In the WP_Query MP3 Source context mp3’s were treated as regular WP Posts, but in case of Audioigniter or MP3 Music Player by Sonaar, the songs are stored in the form of playlists.Įxamples of fetching the songs for Audioigniter and MP3 Music Player by Sonar are located below. This element is very similar to the WP_Query MP3 Source, but there are some differences that have to be considered. WP_Query Album MP3 Sourceįirst of all, we’re assuming that you are already familiar with Audioigniter or MP3 Music Player by Sonar and you know how to create playlists. This is all you need to do for the modification of the Searchable Player template. Modify it to your needs following the examples like in Fetching the Songs While Using Audioigniter or Fetching the Songs While Using MP3 Music Player by Sonar.Īnd that’s it. Feel free to replace the existing context with the new one WP_Query album mp3 source in the Contexts Container. In a few simple steps, you’ll be able to modify the existing Searchable Player to work with either Audioigniter or MP3 Music Player by Sonaar.įirst of all, enable convo-wp-plugin-pack in the Configure Package section This will add WP_Query album mp3 source in the Contexts tab of your workflow. To make yourself familiar with the Searchable Player template, please check out the mentioned article here. Since Audioigniter and MP3 Music Player by Sonaar use a bit different structure which represent the songs (grouped into albums), we had to create a new context component WP_Query album mp3 source. In that example we used the standard WordPress media library for mp3’s to be played. We have previously created an article which describes how to create an Alexa Audio Player skill. Some of the plugins that can help you with it are Audioigniter or MP3 Music Player by Sonaar. Like with everything on the Internet, many of them are using WordPress to achieve that. Many musicians have their own music websites with their creations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |