YouTube video embed outside post content
-
Hi,
YouTube video URLs added to the post content are working fine for me – videos display and adapt to the width of the device. However, adding the URLs outside the post content seems to be tricky.
I also have YouTube URLs added in a custom field which I display wrapped in wp_oembed_get() before/outside the post content. The video ist displayed but auto-sizing doesn’t work.
I’d like to avoid having to extract the YouTube video ID from the URL in order to be able to use amp-youtube (I use Vimeo as well…) – anything I’m missing here?
Cheers,
Thomas
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘YouTube video embed outside post content’ is closed to new replies.