• Resolved steckinsights

    (@steckinsights)


    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!

    https://wordpress.org/plugins/custom-content-shortcode/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Yes, when displaying the post content, you can add embed=true for the [content] shortcode.

    Thread Starter steckinsights

    (@steckinsights)

    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?

    Plugin Author Eliot Akira

    (@miyarakira)

    The embed parameter is for [content] and [field] shortcodes only. I guessed that you’re displaying the post content with either of those?

    Thread Starter steckinsights

    (@steckinsights)

    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!

    Plugin Author Eliot Akira

    (@miyarakira)

    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.

    Thread Starter steckinsights

    (@steckinsights)

    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!

    Plugin Author Eliot Akira

    (@miyarakira)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘YouTube embed URL not working’ is closed to new replies.