Embedding Sound Cloud

Posted in: Newspaper
Post count: 122

Hello,

I am trying to embed a SoundCloud into my page and it is not working. When I post the short code, the html is visible on the page.

Here is the shortcode made for WordPress

[soundcloud url=”https://api.soundcloud.com/tracks/318011283″ params=”color=8800ff&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false” width=”100%” height=”166″ iframe=”true” /]

Post count: 122

Sorry about that. I got it working. For those also wanting to do this, use this code and replace the link as needed.

<iframe width=”100%” height=”166″ scrolling=”no” frameborder=”no” src=”https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/318011283&color=8800ff&auto_play=false&hide_related=false&show_artwork=true&show_comments=true&show_user=true&show_reposts=true”></iframe&gt;

Post count: 9544

Yes, unless you use the normal OEMBED method for Soundcloud you can use the Soundcloud embed code found on their website.

You might find the actual official WordPress docs “codex” helpful in learning to use WP:
https://codex.wordpress.org/Embeds

————–
Usage
To embed a video or another object into a post or page, place its URL into the content area. Make sure the URL is on its own line and not hyperlinked (clickable when viewing the post).

For example:

Check out this cool video:

http://www.youtube.com/watch?v=dQw4w9WgXcQ

That was a cool video.`

WordPress will automatically turn the URL into a YouTube embed and provide a live preview in the visual editor.

Another option is to wrap the URL in the [embed] Shortcode.

[embed width="123" height="456"]http://www.youtube.com/watch?v=dQw4w9WgXcQ[/embed]
If WordPress fails to embed the URL, the post will contain a hyperlink to the URL.
  • This reply was modified 9 years by simchris.
  • This reply was modified 9 years by simchris.
Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.