If you want to copy/paste from the "wordpress" embed link, change your kfunctions.php code:
- Code: Select all
$FUNCS->register_shortcode( 'soundcloud', 'soundcloud_handler' );
function soundcloud_handler( $params, $content=null ){
global $FUNCS;
extract( $FUNCS->get_named_vars(array(
'url' => '',
'height' => '166',
'width' => '100%',
'params' => 'color=0066cc',
), $params) );
$src = "$url" . "&" . "$params";
$html =<<<EOS
<iframe width="$width" height="$height" scrolling="no" frameborder="no" src="$src"></iframe>
EOS;
return $html;
}
You can then copy the wordpress short tag from the embed page:
- Code: Select all
[soundcloud url="https://api.soundcloud.com/tracks/34019569" params="color=0066cc" width="100%" height="166" iframe="true" /]
Note: This changes the parameter back from "src" to "url", so my last post becomes invalid.