Title: Ninja Embed Plugin
Author: gerhard
Published: <strong>27 de novembre de 2011</strong>
Last modified: 12 de desembre de 2012

---

Cerca extensions

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

![](https://s.w.org/plugins/geopattern-icon/ninja-embed-plugin.svg)

# Ninja Embed Plugin

 Per [gerhard](https://profiles.wordpress.org/gerhard/)

[Baixa](https://downloads.wordpress.org/plugin/ninja-embed-plugin.zip)

 * [Detalls](https://ca.wordpress.org/plugins/ninja-embed-plugin/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/ninja-embed-plugin/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/ninja-embed-plugin/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/ninja-embed-plugin/#developers)

 [Suport](https://wordpress.org/support/plugin/ninja-embed-plugin/)

## Descripció

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);?
>`_

## Instal·lació

 1. Copy the PHP file from the zip file at the bottom of this post into your WordPress«
    plugins» folder.
 2. Log in to your installation of WordPress.
 3. Go to the «Plugins» menu and activate the plugin called «Ninja Embed Plugin»
 4. Enjoy!

## PMF

  Where is a good place I can ask questions about this plugin?

The best place would be on the plugin development page at the following location:
http://blog.ninjasforhire.co.za/65/ninja-embed-wordpress-plugin/

## Ressenyes

No hi ha ressenyes per a aquesta extensió.

## Col·laboradors i desenvolupadors

«Ninja Embed Plugin» és programari de codi obert. La següent gent ha col·laborat
en aquesta extensió.

Col·laboradors

 *   [ gerhard ](https://profiles.wordpress.org/gerhard/)

[Traduïu «Ninja Embed Plugin» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/ninja-embed-plugin)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/ninja-embed-plugin/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/ninja-embed-plugin/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/ninja-embed-plugin/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/ninja-embed-plugin/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### 2.2

 * Updated for new SoundCloud player.
 * Fixed embedding using Https.

#### 2.1

 * Updated deprecated PHP functions.

#### 2.0

 * Yahoo Video support added.
 * Widget for embedding media in the sidebar added.

#### 1.3

 * Vimeo URL correcting added.
 * New feature added to remove video container with a parameter tag.

#### 1.2

 * Fixed issue where videos always appeared above post/page content.

#### 1.1

 * Added support for videos on YouTube profile pages.

#### 1.0

 * First Version of the plugin.

## Meta

 *  Versió **2.2**
 *  Darrera actualització **fa 14 anys**
 *  Instal·lacions actives **60+**
 *  Versió del WordPress ** 3.2.1 o posterior **
 *  Provada fins a **3.5.2**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/ninja-embed-plugin/)
 * Etiquetes
 * [embed](https://ca.wordpress.org/plugins/tags/embed/)[media](https://ca.wordpress.org/plugins/tags/media/)
   [soundcloud](https://ca.wordpress.org/plugins/tags/soundcloud/)[vimeo](https://ca.wordpress.org/plugins/tags/vimeo/)
   [youtube](https://ca.wordpress.org/plugins/tags/youtube/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/ninja-embed-plugin/advanced/)

## Valoracions

 5 sobre 5 estrelles.

 *  [  1 valoració de 5 estrelles     ](https://wordpress.org/support/plugin/ninja-embed-plugin/reviews/?filter=5)
 *  [  0 valoracions de 4 estrelles     ](https://wordpress.org/support/plugin/ninja-embed-plugin/reviews/?filter=4)
 *  [  0 valoracions de 3 estrelles     ](https://wordpress.org/support/plugin/ninja-embed-plugin/reviews/?filter=3)
 *  [  0 valoracions de 2 estrelles     ](https://wordpress.org/support/plugin/ninja-embed-plugin/reviews/?filter=2)
 *  [  0 valoracions de 1 estrelles     ](https://wordpress.org/support/plugin/ninja-embed-plugin/reviews/?filter=1)

[La vostra ressenya](https://wordpress.org/support/plugin/ninja-embed-plugin/reviews/#new-post)

[Visualitza totes les ressenyes](https://wordpress.org/support/plugin/ninja-embed-plugin/reviews/)

## Col·laboradors

 *   [ gerhard ](https://profiles.wordpress.org/gerhard/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/ninja-embed-plugin/)

## Feu una donació

Voleu ajudar a què l’extensió millori?

 [ Feu una donació a aquesta extensió ](http://blog.ninjasforhire.co.za/65/ninja-embed-wordpress-plugin/)