Forums

[resolved] html stripping when trying to use object/embed tags (5 posts)

  1. edrom
    Member
    Posted 11 months ago #

    We run several WordPress blogs. On one of the blogs, upon posting, our user can embed a video using code provided by YouTube and on another of our blogs the code added within the html editor is neatly stripped away when she tries to preview or save. Both blogs have media embedding enabled in the WP settings. Is there a way I can enable the user to embed the video in the blog that is currently stripping the code? Is it possible these two blogs are using different editors?

    Thanks in advance.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    It sounds like your second user is switching to the Visual Editor after adding the markup. This will automatically remove the markup previously entered. Why not make use of WordPress' core oEmbed instead of copying & pasting markup?

  3. edrom
    Member
    Posted 11 months ago #

    Thanks. I checked with the second user and they tried adding the markup without switching to the Visual Editor. The code was still stripped out. Any other ideas as to what might be happening? We can look into oEmbed, but it looks like a project for us and we need to get this video publishd this week.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    but it looks like a project for us

    Why? Did you have a look at that page. all you need to do to embed a YT video is to paste the url into the Post or Page. Neither editor will remove that.

  5. edrom
    Member
    Posted 11 months ago #

    We tried embedding a YT by pasting the URL and it worked.

    Thanks!

Reply

You must log in to post.

About this Topic

Tags

No tags yet.