Soundcloud embed shortcode does not work

If you are on WordPress 3.5 or higher just putting the URL on a separate line should work: https://soundcloud.com/radhanath-swami/offer-the-best-you-have You do not need to use the embed code, WordPress handles the embedding via oEmbed itself. Also have a look at the Codex. EDIT: If you want the small image you probably should have mentioned that … Read more

Replace audio/video enclosure with player?

I believe part of what you’re looking for is the WP_Embed class defined in wp-includes/media.php. It implements a framework for automatically replacing urls with the output of embed handlers. I’m afraid you’ll have to do the deeper research yourself (this was apparently introduces in 2.9.0, so documentation might still be thin). I doubt WordPress core … Read more

How can I change Max Embed Size in WordPress 3.5?

See the function wp_embed_defaults() in wp-includes/media.php: function wp_embed_defaults() { if ( ! empty( $GLOBALS[‘content_width’] ) ) $width = (int) $GLOBALS[‘content_width’]; if ( empty( $width ) ) $width = 500; $height = min( ceil( $width * 1.5 ), 1000 ); return apply_filters( ’embed_defaults’, compact( ‘width’, ‘height’ ) ); } To change these values filter embed_defaults: add_filter( … Read more

WP Oembed not passing through the “autoplay=1” variable

Those are not really arguments like for YouTube, more of arguments for WordPress itself. One way to handle it would be to access your argument later inside of a filter and modify HTML output. Pass in arguments array: wp_oembed_get( ‘http://www.youtube.com/watch?v=’, array( ‘autoplay’ => 1 ) ); And filter: add_filter(‘oembed_result’,’oembed_result’, 10, 3); function oembed_result($html, $url, $args) … Read more

How do I embed youtube videos with https instead of http in the URL?

http://core.trac.wordpress.org/ticket/18719 has a working patch now. Edit: Plugin code to do similar until patch gets in: wp_oembed_add_provider(‘#https://(www\.)?youtube.com/watch.*#i’, ‘http://youtube.com/oembed?scheme=https’, true); wp_oembed_add_provider(‘https://youtu.be/*’, ‘http://youtube.com/oembed?scheme=https’, false );

Use [embed] filter in template files

Use wp_oembed_get( $url ) instead. Make sure you echo it in your template file. So, something like this: <?php // tot necessary to set this but good if $url is coming from a function $url=”https://www.youtube.com/watch?v=jofNR_WkoCE”; // echo the function in your template to render the video echo wp_oembed_get( $url ); ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)