Add Spotify, Rdio, and GitHub’s Gist Embeds To Your Site

We’re happy to announce three new things that you can embed into your site!

Spotify

Embed music from Spotify by right-clicking any song, album, or artist in Spotify and selecting “Copy HTTP Link” or “Copy Spotify URI”:

Then paste that into your post editor, making sure that it’s located on its own line all by itself. You’ll end up with something like this when you view your post:

Rdio

If you’re an Rdio user, you can embed music from them too. Copy the URL from your address bar when looking at a track, artist, or playlist and paste that into your post editor. Here are a few examples:

If you use the Mac application for Rdio you can copy URLs from there as well. If you click the “Share” button you’ll see a URL to copy right at the top. Paste that in to your post editor and you’re all set.

GitHub’s Gist

We’re big fans of the code repository website GitHub here at Automattic and many of us use their Gist code snippets website. While we already have a cool way to embed code into your site, we realize many of you want to post Gist-hosted snippets too so starting today you can. Again, just copy/paste the URL out of your address bar onto its own line in the post editor.


<?php
$query_args = array(
'foo' => 'bar',
'apple' => 'orange',
'posts_per_page' => 50,
'offset' => 0,
);
$some_posts = new WP_Query( $query_args );
while ( $some_posts->have_posts() ) {
/*
* Do some stuff here
*/
// Get more posts
$query_args['offset'] = $query_args['offset'] + $query_args['posts_per_page'];
$some_posts = new WP_Query( $query_args );
}

view raw

gistfile1.aw

hosted with ❤ by GitHub


Missing out on the latest WordPress.com developments? Enter your email below to receive future announcements direct to your inbox. An email confirmation will be sent before you will start receiving notifications—please check your spam folder if you don't receive this.

Join 106.9M other subscribers

83 Comments

Comments are closed.

  1. #NoteQu#

    i love this….

    Like

  2. spinningonthewebb

    Very cool new feature!!!

    Like

  3. The Hook

    This could really upgrade my blog! Great share!

    Like

  4. baronen

    Well, I can´t get it to work. Ok, got a link, but no player.

    Like

    • Alex Mills

      Make sure it’s a plain-text URL and not a clickable hyperlink, i.e. don’t use the add link button and instead just paste the URL into your post.

      Alternately you can wrap it in a shortcode, like so: (or rdio or gist)

      Like

  5. baronen

    Thanks Alex, it works great! As an old WordPresser I like it! Well done!

    Like

  6. Daniel Bachhuber

    Reblogged this on danielbachhuber.

    Liked by 1 person

  7. Jerami Community

    Is it free or premium/upgrade?

    Like

  8. pauljpastor

    Well done!

    Like

  9. pravinchn

    Reblogged this on pravinchn.

    Like

  10. gpvprasad

    Reblogged this on Gpvprasad's Blog.

    Like

  11. meenas17

    Well done!

    Like

  12. reverendopeach

    Reblogged this on Don Temón and commented:
    Interesante. Podré poner música en el blog. Me gusta…

    Like

  13. atxblogger

    This just made my ability to share songs via wordpress so much more awesome. Thanks!!!

    Like

  14. Majestic Bridal Online Shop

    Cool!

    Like

  15. Alexander Maxham

    Sweet!

    Like

  16. mohdaswad

    thanks for the information…:))

    Like

  17. badru

    thanks

    Like

  18. Adnanomatic

    i still don not understand how to embed GitHub to WordPress.. 😦

    Like

  19. racheldaytona

    Reblogged this on rachelempowernetwork and commented:
    Wow this is such a cool idea I just had to sure with you guys. I’m thinking about adding it myself!

    Like

  20. neraka69

    Reblogged this on Neraka69's Blog.

    Like

  21. aishaloveslife

    This is amazing!!!!!! Can’t wait to do this.

    Like

  22. Germano "Iceman" Neres

    A nice feature, man! Do not wait to start using it.
    Every day is more rewarding in the WordPress blogging!

    Congratulations, Alex! Nice work!
    And thank you!

    Hugs from Brazil!

    Like

  23. Darren Bayliss

    Great stuff, this should brighten my blog up, kind regards

    Like

  24. that girl again

    *its own line

    Like

  25. Niko

    Thank you so much, this are great features 😉

    Like

  26. Saint Pauly

    Awesome! One more reason to love WP!

    Like

  27. mkalshamsi

    great idea

    Like

  28. Bosstiger

    really really awesome 😀

    Like

  29. Noor Hadi P

    Awesome, cool dude 😀

    Like

  30. Konstantin Kovshenin

    Reblogged this on Konstantin on WordPress.com.

    Like

  31. Μάνος

    Very nice!!!!

    Like

  32. 7times49

    Awesome! 🙂 Will use the Spotify one! 🙂

    Like

  33. thatfellow

    Sweet. Love the Spotify addition.

    Like

  34. Kevin Cole

    Any idea how this plays out with the Intellectual Property laws? For instance, does Spotify carry the burden of paying that when you embed their stuff on your site or are you still on the hook for it?

    Like

  35. ah0098

    hey thank you this is so good post

    Like

  36. sungame

    Great! Does it work for Spotify playlists as well as for tracks and albums?

    Like

  37. wordcoaster

    What an awesome new feature–thanks!

    Like

  38. Frank

    On the Spotify Free Option, you are limited to listening to one song five times in a month . So if the Spotify link is listened to five times in one month, then presumably the link will no longer work, until the next month ?

    Like

  39. ThePearLady

    It didn’t quite work with the method provided (copy spotify url and paste as picture indicates), but snatching the real URL and posting — voila! Brilliant. And, thanks for the feature. 🙂

    Like

  40. Vinny

    Does this work if I put it on my sidebar or a widget? I’m using the Bueno template and would like to have a playlist static on the side,

    Thanks.

    Like

    • Alex Mills

      Yep, you can use the text widget for this but you’ll need to use the shortcode ([spotify]url here[/spotify]) rather than just the URL by itself.

      Like

  41. cashzilla

    Reblogged this on cashzilla and commented:
    This is great!

    Like

  42. DomeniiNebunie

    Great feature! 😀 it’s not working for me though 😦

    Like

  43. Natalie Gorna

    This is AWESOME!

    Like

  44. Jan Lumibao

    Awesome! Definitely using this to share music I work out to.

    Like

  45. Ebrael Shaddai

    Well, instead of single songs only, most of us would like to post full playlists. What about?

    Like

  46. Graham Howes

    very cool!!

    Like

  47. pruebablogrosa

    interesante!!

    Like

  48. youthcreativefoundation

    amazing

    Like

  49. babystrollerpeople

    Reblogged this on My Blogbabystrollerpeople.com.

    Like

  50. ifcindylouonlyknew

    Reblogged this on ifcindylouonlyknew.

    Like

  51. every record tells a story

    This is cool – but you need to remove formatting on the code in order for it to work – I have now gone back through my site and added it to all my posts – excellent!

    Like

  52. compnotts

    Reblogged this on computermob.

    Like

  53. Sachin

    I take it there’s no way of text wrapping around the player, or of embedding the compact, small-artwork version, as seen on Pitchfork reviews e.g. http://pitchfork.com/reviews/albums/16534-blunderbuss/. The problem with the embedding on WordPress.com as is, is that the player is a bit obtrusive, attracting the reader’s attention rather than the text.

    Like

  54. patsquared2

    Tried to download Spotify and it was blocked by Chrome for a possible Win 32 infection. Did this happen to anyone else?

    Like

  55. sweetopiagirl

    This is amazing, I love technology!

    Like

  56. crystallaurenabstracts

    Wonderful idea since music inspires my artwork Jazz in particular. Thanks for this information.

    Like

  57. E

    Does the viewer need to have Spotify installed for this to work on their computer? or will it work regardless?

    Like

  58. HK Johansson

    The Spotify integration is a winner!! Very nice!

    Like

  59. Jan Deelstra

    Ok, I have Spotify on my desktop, but what’s a page editor? Help I’m drowning in technology and can’t find my way out….
    Thanks.

    Like

  60. exiraal

    Will we be soon able to embed Deezer ? Thanks 🙂

    Like

  61. makeyourmarkonlife

    Reblogged this on makeyourmarkonlife.

    Like

  62. atiyakm

    Really Looking forward to adding this to my blog page. How do i attract more readers? Any add-ons that would help?

    Like

  63. Jake Jackson

    That’s a great tip. Thank you. Will look it up now!

    Like

  64. entertainmentgallore

    Really great

    Like

  65. coolcounterculture

    It’s shame Spotify isn’t ready available for non-US peoples. I guess iTunes will have to do.

    Like

  66. makestock

    Very nice

    Like

  67. c59c

    Great features! I learn something new everyday on WordPress.

    Like

  68. UNICORNIVORE

    Reblogged this on unicornivore and commented:
    THIS LOOKS AWESOME

    Like

Create your new blog or website for free

Get Started