• Resolved baermktg

    (@baermktg)


    I’m trying to embed this iframe from YouTube into WPcode to get a shortcode to add to a web page.

    <iframe width=”647 height=”358″ src=”https://www.youtube.com/embed/kWRF9-ER1ek?si=TXNJFnPVJkkT7k-R&controls=0&#8243; title=”YouTube video player” frameborder=”0″ allow=”accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share” allowfullscreen></iframe>

    I get three errors.
    “Special characters must be escaped : [ < ]”
    “Special characters must be escaped : [ > ]”
    “Special characters must be paired, no start tag: [ </iframe> ]”

    I’ve tried multiple ways to accommodate this, but it doesn’t work. It appears to only work if I use [ <iframe > ] all of the parameters [ </iframe > ] and that won’t work for embedding a YouTube video.
    Any sage advice out there? Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @baermktg,

    Can you please make sure that the Code Type of the snippet you are trying to create is set to “HTML”? That should have no problem supporting iframe codes.

Viewing 1 replies (of 1 total)
  • The topic ‘YouTube Embedding Code’ is closed to new replies.