How to make support the HTML tag "oembed" by the wordpress editor

466 Views Asked by At

I want to add the following html code to my wordpress editor but the youtube video is not embeded. The url disappear.

<figure><oembed url="https://www.youtube.com/watch?v=btDyQlFQCew"></oembed></figure>

How to make the wordpress editor accept the "oembed" html tag ?

1

There are 1 best solutions below

0
On BEST ANSWER

You can use the native WordPress Embed Block: https://wordpress.org/support/article/embeds/

And in general you can just paste the link itself (URL only) inside the WordPress editor and it will automatically generate the embed for you.