WordPress.org

Forums

Youtube
Another redundant plugin you don't need (1 post)

  1. maxphotoguy
    Member
    Posted 2 years ago #

    The plugin directory is too crowded with too many redundant plugins like this. For those who can read and just want to paste a video, use this from wordpress:

    All you need to do to embed something into a post or page is to post the URL to it into your content area. Make sure that the URL is on its own line and not hyperlinked (clickable when viewing the post).

    For example:

    Check out this cool video:

    http://www.youtube.com/watch?v=nTDNLUzjkpg

    That was a cool video.
    WordPress will automatically turn that into a YouTube embed when the post is viewed. (Check the "Auto-embeds" check box in Administration > Settings > Media SubPanel.)

    You can also opt to wrap the URL in the [embed] shortcode. It will accomplish the same effect, but does not require the URL to be on its own line and the "Auto-embeds" setting to be enabled. It also allows you to set a maximum (but not fixed) width and height, like so: [embed width="123" height="456"]...[/embed]

    If WordPress fails to embed your URL you will get a hyperlink to the URL.

    oEmbed
    The easy embedding feature is mostly powered by oEmbed, a protocol for site A (such as your blog) to ask site B (such as YouTube) for the HTML needed to embed content (such as a video) from site B.

    oEmbed was designed to avoid having to copy and paste HTML from the site hosting the media you wish to embed. It supports videos, images, text, and more.

    Can I Use Any URL With This?
    Not by default, no. WordPress will only embed URLs matching an internal whitelist. This is for security purposes.

    Okay, So What Sites Can I Embed From?
    You can use all of these:

    YouTube (only public videos and playlists - "unlisted" and "private" videos will not embed)
    Vimeo (note older versions of WP have issues with https embeds, just remove the s from the https to fix)
    DailyMotion
    blip.tv
    Flickr (both videos and images)
    Viddler
    Hulu
    Qik
    Revision3
    Scribd
    Photobucket
    PollDaddy
    WordPress.tv (only VideoPress-type videos for the time being)
    SmugMug (WordPress 3.0+)
    FunnyOrDie.com (WordPress 3.0+)
    Twitter (WordPress 3.4+)

    It's all here: http://codex.wordpress.org/Embeds

    More here too:
    http://www.viper007bond.com/2009/10/13/easy-embeds-for-wordpress-2-point-9/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.