3

When I embed a YouTube video in the suggest manner (paste url) it adds this as an object. Is there a way to embed as IFRAME instead?

2

1 Answer 1

2

If you don't want to utilize the latest oembed functions and want the old iframe way from any page or post, you can do these:

  1. Get the embed code from any youtube video.
  2. While editing/creating your post/page, select the Text(HTML) mode of the editor
  3. Simply paste the embed code

    • As noted by PayteR, this will only work if you are an administrator or super admin user
1
  • 1
    but for this, user must be admin, or superadmin if it's on multisite, because WP it will remove any potential threats like <iframe> <script> etc...
    – PayteR
    Aug 2, 2017 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.