How to (correctly) embed a Facebook video?

It worked correctly for me, however I used the wp_enqueue_scripts hook to add the JavaScript. function mytheme_enqueue_scripts() { wp_register_script(‘facebook-video’, ‘https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v3.3’, ”, ”); wp_enqueue_script(‘facebook-video’); } add_action(‘wp_enqueue_scripts’, ‘mytheme_enqueue_scripts’); Do you see any errors in your browser console or network tab? Do you see the JS added to your page if you inspect?

Why most embed feature doesn’t work?

WordPress relies on the open standard for embedding called OEmbed. This is what makes Youtube URLs turn into video players when copy pasted into a post, etc By default WordPress only supports a predefined list of OEmbed providers, so it knows how to ask Youtube or Vimeo for an embed snippet, but 9gag isn’t in … Read more

Block editor: Sandbox iframe shows outdated HTML

The WordPress (Gutenberg) block editor requests data from an oembed proxy endpoint, and that endpoint retrieves data using the Transients API. It seems that clearing all oembed caches doesn’t also clear oembed transient caches. The following database query to clear your oembed caches from the postmeta table is NOT sufficient: global $wpdb; $meta_key_1 = “|_oembed|_%%”; … Read more

Can’t embed certain youtube videos into theme

I had recently similar issue with Divi and embedding videos. At the end I realized its because oEmbed issues in WordPress sites running on host with both IPv4 and IPv6 sites. Either you can add this code to your functions.php to fix this: add_action( ‘http_api_curl’, function( $curl_handle ) { curl_setopt( $curl_handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 ); }); … Read more

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