YouTube Embedding Code
-
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″ 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!
- The topic ‘YouTube Embedding Code’ is closed to new replies.