Title: Media2Layout
Author: nickpdx
Published: <strong>June 18, 2009</strong>
Last modified: June 19, 2009

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Media2Layout

 By [nickpdx](https://profiles.wordpress.org/nickpdx/)

[Download](https://downloads.wordpress.org/plugin/media2layout.0.1.1.zip)

 * [Details](https://wordpress.org/plugins/media2layout/#description)
 * [Reviews](https://wordpress.org/plugins/media2layout/#reviews)
 *  [Installation](https://wordpress.org/plugins/media2layout/#installation)
 * [Development](https://wordpress.org/plugins/media2layout/#developers)

 [Support](https://wordpress.org/support/plugin/media2layout/)

## Description

Media2Layout facilitates the dynamic inclusion of media library artwork into predefined
places in your site’s theme. It creates named positions (by default “campaign” and“
header”) which can be assigned a media item per each Page.

 * Adds an admin menu item under Themes to edit your Position names
 * Adds a dropdown control when editing Pages to select the images for each Position
   in that Page

To insert the images into your theme, just add a bit of PHP code to your theme in
the appropriate spot, for example:

    ```
    <?php Media2Layout::banner('foo');?> 
    ```

For the position named “foo” this would print an tag for the media assigned to the
Foo position of the current page (or print nothing if no media is assigned to that
position). Currently it wraps the in a

<

div> with class “media2layout_[position-name]”.

## Screenshots

[⌊The Media2Layout position admin screen⌉⌊The Media2Layout position admin screen⌉[

The Media2Layout position admin screen

[⌊Media2Layout annotation for position "campaign" in a custom theme⌉⌊Media2Layout
annotation for position "campaign" in a custom theme⌉[

Media2Layout annotation for position “campaign” in a custom theme

[⌊Assigning image from media library to "campaign" position for a Page⌉⌊Assigning
image from media library to "campaign" position for a Page⌉[

Assigning image from media library to “campaign” position for a Page

## Installation

 1. Extract Media2Layout archive to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use the admin menu under Themes to create a named media position
 4. Add that position to your template(s) by inserting `<?php Media2Layout::banner('
    position-name-here');?>`
 5. Assign media to your media positions per each Page

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Media2Layout” is open source software. The following people have contributed to
this plugin.

Contributors

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

[Translate “Media2Layout” into your language.](https://translate.wordpress.org/projects/wp-plugins/media2layout)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/media2layout/), check
out the [SVN repository](https://plugins.svn.wordpress.org/media2layout/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/media2layout/) by
[RSS](https://plugins.trac.wordpress.org/log/media2layout/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **0.1.1**
 *  Last updated **17 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 2.7 or higher **
 *  Tested up to **2.7**
 * Tags
 * [cms](https://wordpress.org/plugins/tags/cms/)[media](https://wordpress.org/plugins/tags/media/)
   [page](https://wordpress.org/plugins/tags/page/)
 *  [Advanced View](https://wordpress.org/plugins/media2layout/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/media2layout/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/media2layout/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/media2layout/)