How to Embed SoundCloud in your WordPress Posts by using oEmbed

One of our users asked us for an easy way to embed SoundCloud in their WordPress site. WordPress has this cool feature called oEmbed which supports auto-embedding as long as you post the URL in its own line. Currently the WordPress oEmbed library supports popular services like Youtube, Twitter, Vimeo, etc. However, SoundCloud is not supported by WordPress just yet. Well there is nothing to worry because WordPress makes it really easy to add oEmbed providers using wp_oembed_add_provider() function. In this article, we will show you how to add oEmbed support for SoundCloud in WordPress.

Update: You DO NOT have to use this tutorial anymore. WordPress 3.5+ has built-in oEmbed support for SoundCloud.

All you have to do is paste the following code in your theme’s functions.php file or in a site-specific plugin.

That’s it. Simply paste your SoundCloud URL in a separate line and let the auto-embedding (oEmbed) magic do the rest.

There is a fairly popular plugin that you can use as well called SoundCloud is Gold which offers a lot of features. Alternatively because SoundCloud is officially supported by WordPress.com, there is a shortcode available for all WordPress.com users. So you can use the JetPack plugin for self-hosted WordPress and enable shortcode embeds option. Once you do that, you will be able to use the shortcode like this:

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Notify me of followup comments via e-mail. You can also subscribe without commenting.

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).