Skip to content

[HelpHub] Feedback on YouTube embed #1978

Open

Description

@zzap

URL of the Page with the Issue

https://wordpress.org/documentation/article/youtube-embed/

Report content (issue description) its author

Is it possible to have the same results as this method, by embeding the youtube url from a shortcode?

By https://profiles.wordpress.org/pixluser/

Activity

  1. github-actions commented on Jun 23, 2025

    @github-actions

    Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.

  2. rollybueno commented on Jun 24, 2025

    @rollybueno
    Member

    /assign

  3. github-actions commented on Jun 24, 2025

    @github-actions

    Hey @rollybueno, thanks for your interest in this issue! 🍪🍪🍪
    If you have any questions, do not hesitate to ask them in our #docs Slack channel.
    Enjoy and happy contributing ❤️

  4. rollybueno commented on Jun 24, 2025

    @rollybueno
    Member

    Limitations of embedding YouTube via shortcode

    While both the YouTube Embed block and the [embed] shortcode allow you to display a YouTube video by simply providing a URL, they are not functionally identical, especially in the context of the block editor.

    The YouTube Embed block offers additional features such as block-level caption support, media settings, margins option, and custom CSS classes under the Advanced tab. These controls are native to the block interface and provide flexibility without writing custom code.

    Image
    ALT: YouTube Embed block media settings and Advanced option

    Image
    ALT: YouTube Embed block dimensions setting

    On the other hand, embedding a YouTube URL using [embed]...[/embed] or directly via a Shortcode block results in a basic iframe output. It renders the video, but lacks UI-driven settings and customization available in the Embed block.

    Image
    ALT: Shortcode block settings


    Changelog:
    Updated 2025-06-24
    - Added shortcode limitation

  5. rollybueno commented on Jun 24, 2025

    @rollybueno
    Member

    Had to test the shortcode vs YouTube embed block in order to get precise info + screenshots

  6. rollybueno commented on Jun 24, 2025

    @rollybueno
    Member

    Ready for /review @zzap

  7. atachibana commented on Sep 22, 2026

    @atachibana
    Collaborator

    @rollybueno
    Thank you. The differences between the Embed block and embed shortcodes are explained very clearly.

    One thought, though: this issue was opened for the YouTube Embed block, but I believe the same explanation applies to most other Embed blocks as well.
    Rather than adding this information only to the YouTube Embed block article, would it make sense to add a more general section such as "Embed Blocks vs. Embed Shortcodes" to a Embeds page:
    https://wordpress.org/documentation/article/embeds/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions