Hello I am trying to get a preview of the youtube video when pasted to the editor but it keeps loading plain instead of loading the video preview.

I have created an options page in admin side for a userrole. Then I have used wp_editor(); on that options page.

also enqeued wp_enqueue_media(); & wp_enqueue_script( 'mce-view' );

Please help

enter image description here

I am expecting something like this. enter image description here

  • Instead of pasting in the <iframe>...</iframe>, just paste the video's URL into the visual editor. WordPress's oEmbed system will recognize it and should display the video preview.
    – Pat J
    Jan 14 at 19:42
  • @PatJ that's not the actual case. It will just show an url Jan 15 at 3:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.