WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom Youtube Player using WordPress Embeds (3 posts)

  1. noidoi
    Member
    Posted 2 months ago #

    Hi,

    I am wondering if there is a way to add parameters to default youtube player that shows when you insert the link to youtube in a post. (http://codex.wordpress.org/Embeds)

    I specifically want to remove the related videos in the end.
    https://developers.google.com/youtube/player_parameters#rel

    Thanks,

  2. Chris Barrett
    Member
    Posted 2 months ago #

    Hi noidol,

    The WordPress native embeds only support limited parameters using the supported short code parameters (note - not the same thing as the YouTube command line arguments). For more information, please review: http://codex.wordpress.org/Embeds

    If you want to add the &rel=0, you wouldn't want to use the built in embeds. Instead, use the YouTube generated code as discussed in this thread: http://wordpress.org/support/topic/embed-youtube-and-not-show-related-videos-when-video-is-finished

    Alternatively, you could source a plugin or look at modifying the oEmbed scripts that WordPress uses. (http://oembed.com)

  3. noidoi
    Member
    Posted 2 months ago #

    Thanks for the answer.

    I found a plugin that does the work

Reply

You must log in to post.

About this Topic