Viewing 1 replies (of 1 total)
  • Plugin Contributor Patrick Jackson

    (@pjackson1972)

    Hi ennol,

    This is an interesting question.

    When html is added to the content area, and the excerpt is automatically generated, the html will be removed. This is true for links as well.

    However, most HTML is NOT filtered if you add it to the Excerpt field. In the case of the YouTube video, you can’t just add the link like you can in the content area, but you CAN use the iframe code generated by YouTube via the embed link.

    So, if I wanted the following Taylor Swift video to show up on my post page, I could just use the [embed] shortcode and URL…

    [embed]https://youtu.be/e-ORhEE9VVg[/embed]

    If I wanted that same video to show in my Posts in Page listing for that post, I would also add the following to that post’s Excerpt field…

    <iframe width="560" height="315" src="//www.youtube.com/embed/e-ORhEE9VVg?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>

    I hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘displaying youtube video’ is closed to new replies.