WordPress.org

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Embed Shortcode

The Embed feature allows you to wrap embedded items using a simple Shortcode to set of a maximum (but not fixed) width and height. This was added as of WordPress 3.6 and is used like this:

[embed]...[/embed]

Usage

I have an embedded item, and I want to set max dimentions:

[embed width="123" height="456"]...[/embed]

Options

The following basic options are supported:

width
(integer) (optional) Defines width of the media.
Default: None
height
(integer) (optional) Defines height of the media.
Default: None

Source File

The embed shortcode is located in wp-includes/class-wp-embed.php.

Related

WordPress Shortcodes: [audio], [caption], [embed], [gallery], [playlist], [video]