I have a lyrics website on WordPress with thousands of lyrics, and I am looking to embed a player on each one. But I have realised it would be tedious and time consuming to do that.
How would I display a dynamic audio player that would find and play a track (using the current post title) from soundcloud?
This could preferably be a html5 audio player or an actual soundcloud embed.
The way it plays out in my head is to do a search, then pass the first result (track url) into a variable, then call the variable in the src part of the player.
<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/216846955&color=00aabb"></iframe>