Ninja Embed Plugin

Easily embed media from YouTube, Vimeo, Yahoo Video and Soundcloud into your posts, pages and templates.

Author:Ninjas for Hire (profile at wordpress.org)
WordPress version required:3.2.1
WordPress version tested:3.5.2
Plugin version:2.2
Added to WordPress repository:27-11-2011
Last updated:12-12-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:1
Plugin URI:http://blog.ninjasforhire.co.za/65/ninja-embe...
Total downloads:8 622
Active installs:100+
plugin download
Click to start download

a WordPress plugin that would not only allow the user to easily embed media from YouTube, Vimeo, Yahoo Video and Soundcloud into their posts, but also allow us as developers to use it as a function in the our WordPress template files to embed videos in custom content types and other filters. The plugin also comes with a widget to allow you to easily embed media in your sidebar.

The plugin currently supports YouTube, Vimeo, Yahoo Video and Soundcloud. We hope to be able to add more online media services soon.

Usage

How do users use it?

To embed a piece of media in a post or page you simply need to add the following shortcode to you post or page content:

[media link=”http://www.youtube.com/watch?v=EojN6r2VSR4″]

You can also set a custom width and height to your media by adding the width and height parameters to the shortcode:

[media width=”800″ height=”600″ link=”http://www.youtube.com/watch?v=EojN6r2VSR4″]

As of version 1.3 you can now remove the container around the embed code by setting the container to false(default is true):

[media container=”false” link=”http://www.youtube.com/watch?v=EojN6r2VSR4″]

How do developers use it?

Don’t worry, we did not forget about the developers.

To embed a piece of media somewhere in the code you simply need to add the following function to the template:

<?php media_embed('http://www.youtube.com/watch?v=EojN6r2VSR4'); ?>

You can also set a custom width and height to the media by adding arguments for width and height respectively:

<?php media_embed('http://www.youtube.com/watch?v=EojN6r2VSR4', 800, 600); ?>

As of version 1.3 it is now possible to remove the container around the embed code you can set the container to false(default is true):

<?php media_embed('http://www.youtube.com/watch?v=EojN6r2VSR4', 800, 600, false); ?>

OR if you don’t want to set the width and height and just remove the container:

<?php media_embed('http://www.youtube.com/watch?v=EojN6r2VSR4', '', '', false); ?>


FAQ
ChangeLog