Integrate SoundCloud audio embed into your forums using custom BB Codes.
Go to AdminCP > Custom BB Codes > Add New BB Code and enter the following information:
Title: SoundCloud
BB Code Tag Name: soundcloud
Replacement:
Example: [soundcloud]TrackIdHere[/soundcloud]
Other Options: Select Yes to all starting from "Remove Tag If Empty" option (for Button Image option, you could specify image path. If specified, a new button for this BB Code will appear in the editor)
To find out the track ID in SoundCloud.com, click the Share button, then click Embed tab. The track ID is in the Code and Preview textbox. Check WordPress code checkbox to see the track ID more easily.
where xxxxxxxxx is the track id (e.g. 123456789)
So a sample BB Code posting would be:
and it would render like this:
Go to AdminCP > Custom BB Codes > Add New BB Code and enter the following information:
Title: SoundCloud
BB Code Tag Name: soundcloud
Replacement:
Code:
<iframe width="100%" height="300" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{param}&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>
Other Options: Select Yes to all starting from "Remove Tag If Empty" option (for Button Image option, you could specify image path. If specified, a new button for this BB Code will appear in the editor)
To find out the track ID in SoundCloud.com, click the Share button, then click Embed tab. The track ID is in the Code and Preview textbox. Check WordPress code checkbox to see the track ID more easily.
Code:
api.soundcloud.com/tracks/xxxxxxxxx
So a sample BB Code posting would be:
Code:
[soundcloud]252827242[/soundcloud]
Comment