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


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 );
}


 

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s