YouTube embed URL not working
-
I apologize if this is covered elsewhere, but I scanned the last 8 or so support forum pages and didn’t see anything related.
While using the [loop] shortcode, posts that are pulled in which contain YouTube embed URLs only show as the URL string. The YouTube video is not being embedded.
Any suggestions on resolving this? We have a couple hundred posts that have YouTube videos embedded on them, so if there is a solution that doesn’t require manual editing of each post, that would be ideal.
Thanks in advance!
-
Yes, when displaying the post content, you can add
embed=truefor the [content] shortcode.Thanks @miyarakira, however, I had already attempted using
embed="true"in the [loop] shortcode, which was not working.embed=true(without quotes) also does not work. The Youtube URL appears on the post, instead of being converted into an embedded video.I’m not using the
[content]shortcode, but the[loop]shortcode, which may be the problem.Let me know if I’m setting it up wrong, or if this is a limitation of the plugin?
The embed parameter is for
[content]and[field]shortcodes only. I guessed that you’re displaying the post content with either of those?Thanks @miyarakira. We’re using the
[loop]shortcode to pull in post content. All embed code is stripped down.If you have any suggestions, we’re all ears! Thanks!
Could you show me an example of the code you’re using?
The [loop] shortcode by itself doesn’t display anything – there must be [content], [field] or some other shortcode inside the loop. That’s where the embed parameter should go.
Well, I feel like an idiot, but I’m so glad you explained the difference. I was applying it to the
[loop]shortcode. When I added it to the[field]shortcode, all is well. Thank you for taking the time to explain!Good to hear, I’m glad we solved it.
The documentation is a little confusing on this part, the embed parameter is described under [content] but not for [field]. I’ll see if I can improve it.
The topic ‘YouTube embed URL not working’ is closed to new replies.