Pursuit of Loot

Embedding music from Spotify

Posted on 13th January 2020

Tags:

New plugin time!

I have a laundry list of things I want to do with this site, and when I randomly picked one today it was to add the ability to include spotify embeds in my blog posts.

Sharing music with each other is one of lifes little pleasures, and I wanted to be able to make the odd post here and there with a little audio suggestion for anyone reading.

Getting it set up with the site was pretty easy, the documentation for the plugin is straightforward enough. Here's an example of the code you need to use once you've installed it.

https://open.spotify.com/track/6CnkGSMarTBjIKWuuGXBNl?si=ecMRoa36RnWte3RR7PdJhw

Yes, it really is as simple as posting a link, so you won't even have to add some markdown snippets to your collection. The plugin will also work for albums, playlists and artist pages too, so it has plenty of scope to be used here in future.

Here's a song I enjoy listening to when I'm working...

https://open.spotify.com/track/1UYXdZZMnCrlUqDRuIs9OE?si=o1jHaVOoR9mixj8q_JFW3w

And here's my ongoing playlist of the songs I pick up during the year...

https://open.spotify.com/playlist/1YipOO9vFIge00nqzlAVrC?si=sgwuXQ0uQ_epV2scsG-ImA

Got any song recommendations? Feel free to contact me and let me know 🥳


Enjoyed this post? Feel free to share it with your audience using the links below:

Don't see your favourite social network on the list? Feel free to let me know and I'll get it added.

Comments

©2022 Pursuit of Loot. All rights reserved.