Title: Multi Image Metabox
Author: Willy Bahuaud
Published: <strong>17 de diciembre de 2012</strong>
Last modified: 13 de agosto de 2014

---

Buscar plugins

![](https://ps.w.org/multi-image-metabox/assets/banner-772x250.jpg?rev=659728)

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas 
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

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

# Multi Image Metabox

 Por [Willy Bahuaud](https://profiles.wordpress.org/willybahuaud/)

[Descargar](https://downloads.wordpress.org/plugin/multi-image-metabox.zip)

 * [Detalles](https://es.wordpress.org/plugins/multi-image-metabox/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/multi-image-metabox/#reviews)
 *  [Instalación](https://es.wordpress.org/plugins/multi-image-metabox/#installation)
 * [Desarrollo](https://es.wordpress.org/plugins/multi-image-metabox/#developers)

 [Soporte](https://wordpress.org/support/plugin/multi-image-metabox/)

## Descripción

This plugin add a metabox which allox to upload and link multiple images to one 
post.
 Pictures are linked by the way of meta_value (and attachments ID). They can
be reordered using drag and drop.

Number of allowed pictures and concerned post types can be overited using hooks.

Plugin includes many functions to retrieve linked pictures.
 For more information
on using the plugin, refer to the section [«Other Notes»](https://es.wordpress.org/extend/plugins/multi-image-metabox/other_notes/?output_format=md).

### Set concerned post types

Paste this into your theme’s functions.php file :

### Set allowed number of picts

Paste this into your theme’s functions.php file :
 ‘_image1’, ‘image2’ => ‘_image2’,);
return $picts; } ?>

#### Set allowed number of picts, depending to the post_type

Paste this into your theme’s functions.php file :
 add_filter(‘list_images’,’my_list_images’,
10,2); function my_list_images($list_images, $cpt){ global $typenow; if($typenow
== «my_custom_post_type» || $cpt == «my_custom_post_type») $picts = array( ‘image1’
=> ‘_image1’, ‘image2’ => ‘_image2’, ‘image3’ => ‘_image3’, ); else $picts = array(‘
image1’ => ‘_image1’, ‘image2’ => ‘_image2’, ‘image3’ => ‘_image3’, ‘image4’ => ‘
_image4’, ‘image5’ => ‘_image5’, ‘image6’ => ‘_image6’, ‘image7’ => ‘_image7’, ‘
image8’ => ‘_image8’, ); return $picts; }

### get_images_ids()

This function have to be used into a template file, or any function.
 It return 
an array of the linked attachments’s ID.

It take two arguments whose are :

 1. **include the thumbnail ?** (boolean) if true include the thumbnail in the returned
    datas
 2. **ID** (integer) for targeting images linked to a specific post
 3.  45,
     ‘image1’ => 5, ‘image2’ => 6, ‘image3’ => 12, ‘image6’ => 20, ‘image7’ =>
    15 );
 4. //Empty pictures ar not returned
 5. ?>
 6. 
    ### get_images_src()
    
 7. This function have to be used into a template file, or any function.
     It return
    an array of URIs and dimension for the linked attachments’s, by order.

It take three agruments whose are :

 1. **size** (string) the size to return
 2. **include the thumbnail ?** (boolean) if true include the thumbnail in the returned
    datas
 3. **ID** (integer) for targeting images linked to a specific post
 4.  array(
     [0] => ‘http://url_of_the_medium_pict.jpg’, [1] => 340, [2] => 200, [3]
    => false //I’ve no idea what is it… ), ‘image2’ => array( [0] => ‘http://url_of_the_medium_second_pict.
    jpg’, [1] => 340, [2] => 200, [3] => false //I’ve no idea what is it… ) );
 5. ?>
 6. 
    ### get_multi_images_src()
    
 7. Same as get_image_src(), but return two sizes for all the pictures.

It take for agruments whose are :

 1. **size** (string) the size to return
 2. **size2** (string) another size to return
 3. **include the thumbnail ?** (boolean) if true include the thumbnail in the returned
    datas
 4. **ID** (integer) for targeting images linked to a specific post
 5.  array(
     [0] => array( [0] => ‘http://url_of_the_medium_pict.jpg’, [1] => 340, [
    2] => 200, [3] => false //I’ve no idea what is it… ), [1] => array( [0] => ‘http://
    url_of_the_full_pict.jpg’, [1] => 1020, [2] => 600, [3] => false //I’ve no idea
    what is it… ), ), ‘image2’ => array( [0] => array( [0] => ‘http://url_of_the_medium_second_pict.
    jpg’, [1] => 340, [2] => 200, [3] => false //I’ve no idea what is it… ), [1] =>
    array( [0] => ‘http://url_of_the_second_full_pict.jpg’, [1] => 1020, [2] => 600,[
    3] => false //I’ve no idea what is it… ) ) ); //Empty pictures ar not returned
 6. ?>

## Capturas

[⌊The metabox look like that !⌉⌊The metabox look like that !⌉[

The metabox look like that !

## Instalación

 1. Upload the Multi Image Metabox plugin to your blog and Activate it.
 2. Customize (into the functions.php file of your theme):
 3.  a. If you want to target other post type than PAGE, [use the filter hook «images_cpt»](https://wordpress.org/extend/plugins/multi-image-metabox/other_notes/#Set-concerned-post-types)
     b. If you want to change the number of image, [use the filter hook «list_images»](https://wordpress.org/extend/plugins/multi-image-metabox/other_notes/#Set-allowed-number-of-picts)
 4. Retrieve the linked images in your theme using the functions :
 5.  a. [Use get_images_ids()](https://wordpress.org/extend/plugins/multi-image-metabox/other_notes/#get_images_ids())
        into the loop to get an array of attachment’s ID
     b. [Use get_images_src(‘size’)](https://wordpress.org/extend/plugins/multi-image-metabox/other_notes/#get_images_src())
        into the loop to get an array of attachment’s URI & dimensions for the quiered
        size
     c. [Use get_multi_images_src(‘size1′,’size2’)](https://wordpress.org/extend/plugins/multi-image-metabox/other_notes/#get_multi_images_src())
        into the loop to get an array of attachment’s URI & dimensions for 2 differents
        size
 6. Enjoy ^^ (report to developper section to view the returned datas)

## FAQ

  Installation Instructions

 1. Upload the Multi Image Metabox plugin to your blog and Activate it.
 2. Customize (into the functions.php file of your theme):
 3.  a. If you want to target other post type than PAGE, [use the filter hook «images_cpt»](https://wordpress.org/extend/plugins/multi-image-metabox/other_notes/#Set-concerned-post-types)
     b. If you want to change the number of image, [use the filter hook «list_images»](https://wordpress.org/extend/plugins/multi-image-metabox/other_notes/#Set-allowed-number-of-picts)
 4. Retrieve the linked images in your theme using the functions :
 5.  a. [Use get_images_ids()](https://wordpress.org/extend/plugins/multi-image-metabox/other_notes/#get_images_ids())
        into the loop to get an array of attachment’s ID
     b. [Use get_images_src(‘size’)](https://wordpress.org/extend/plugins/multi-image-metabox/other_notes/#get_images_src())
        into the loop to get an array of attachment’s URI & dimensions for the quiered
        size
     c. [Use get_multi_images_src(‘size1′,’size2’)](https://wordpress.org/extend/plugins/multi-image-metabox/other_notes/#get_multi_images_src())
        into the loop to get an array of attachment’s URI & dimensions for 2 differents
        size
 6. Enjoy ^^ (report to developper section to view the returned datas)

## Reseñas

![](https://secure.gravatar.com/avatar/b32128cbbddd395a0e55041cbca50ebeee7924639bc9c76651d98bff47634e58?
s=60&d=retro&r=g)

### 󠀁[Pretty Good Plug-in](https://wordpress.org/support/topic/pretty-good-plug-in/)󠁿

 [ellice909](https://profiles.wordpress.org/ellice909/) 3 de septiembre de 2016

I am a graphic designer and I use this on my own site. I use it on some client sites.
It really helps me get the job done. I wish the documentation was a bit clearer.
I remember not getting a critical piece of information from the documentation when
I started using this the first time; I did find the clue I needed in a comment or
faq or some random spot that was contributed by a user.

![](https://secure.gravatar.com/avatar/b4b429a51abc493a9017f5fac197ceee6a104a1a8601420172e213034fa5657b?
s=60&d=retro&r=g)

### 󠀁[I was using It for a long time. Very Good . A rectification I have written below](https://wordpress.org/support/topic/i-was-using-it-for-a-long-time-very-good-a-rectification-i-have-written-below/)󠁿

 [kaushik_plugindev](https://profiles.wordpress.org/kaushik_plugindev/) 3 de septiembre
de 2016

In the plugin folder > see this file "get-images.js" In the code=> You have written
===> /*$('.upload_pdf_button').live('click',function() { // .live function become
deprecated in modern jQuery library. //I have written the rectified code, */ /*$(
document).on('click','.upload_pdf_button',function() { $('html').addClass('pdf');
num = $(this).attr('data-cible'); formfielddeux = $('.url_pdf_input[data-input="'
+num+'"]').attr('name'); var id=$("#post_ID").val(); tb_show('', 'media-upload.php?
post_id='+id+'&type=file&TB_iframe=true'); return false; });*/

 [ Leer todas las 11 reseñas ](https://wordpress.org/support/plugin/multi-image-metabox/reviews/)

## Colaboradores y desarrolladores

«Multi Image Metabox» es un software de código abierto. Las siguientes personas 
han colaborado con este plugin.

Colaboradores

 *   [ Willy Bahuaud ](https://profiles.wordpress.org/willybahuaud/)

[Traduce «Multi Image Metabox» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/multi-image-metabox)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/multi-image-metabox/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/multi-image-metabox/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/multi-image-metabox/)
por [RSS](https://plugins.trac.wordpress.org/log/multi-image-metabox/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 1.3.4

 * Solve a major bug on front end, when you want to customize number of pictures
   depending to the post type.
 * YOU NEED TO UPDATE YOUR FILTERS «list_images», if you’re using it…

#### 1.3.1

 * Solve a minor bug while saving menus

#### 1.3

 * Add an integer argument **id** for all procedurals functions to target a specific
   post
 * Solve a bug into the get_multi_images_src() function

#### 1.2

 * Add an boolean argument **thumbnail** for all procedurals functions to join image
   post thumbnail (ID, images) at the front of the returned arrays

#### 1.1

 * Change the hook for initializing the plugin. By this way we can now assign different
   numbers of picts, depending to the post type.
 * Debug the default sizes of get_multi_image_src()

#### 1.0

 * First version, with some hooks and functions

## Meta

 *  Versión **1.3.5**
 *  Última actualización **hace 9 años**
 *  Instalaciones activas **6.000+**
 *  Versión de WordPress ** 3.0 o superior **
 *  Probado hasta **3.5.2**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/multi-image-metabox/)
 * Etiquetas:
 * [images](https://es.wordpress.org/plugins/tags/images/)[metabox](https://es.wordpress.org/plugins/tags/metabox/)
   [multiple](https://es.wordpress.org/plugins/tags/multiple/)[multiple post thumbnail](https://es.wordpress.org/plugins/tags/multiple-post-thumbnail/)
   [pictures](https://es.wordpress.org/plugins/tags/pictures/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/multi-image-metabox/advanced/)

## Valoraciones

 4.9 de 5 estrellas.

 *  [  10 valoraciones de 5 estrellas     ](https://wordpress.org/support/plugin/multi-image-metabox/reviews/?filter=5)
 *  [  1 valoración de 4 estrellas     ](https://wordpress.org/support/plugin/multi-image-metabox/reviews/?filter=4)
 *  [  0 valoraciones de 3 estrellas     ](https://wordpress.org/support/plugin/multi-image-metabox/reviews/?filter=3)
 *  [  0 valoraciones de 2 estrellas     ](https://wordpress.org/support/plugin/multi-image-metabox/reviews/?filter=2)
 *  [  0 valoraciones de 1 estrellas     ](https://wordpress.org/support/plugin/multi-image-metabox/reviews/?filter=1)

[Tu valoración](https://wordpress.org/support/plugin/multi-image-metabox/reviews/#new-post)

[Ver todas las reseñas](https://wordpress.org/support/plugin/multi-image-metabox/reviews/)

## Colaboradores

 *   [ Willy Bahuaud ](https://profiles.wordpress.org/willybahuaud/)

## Soporte

Problemas resueltos en los últimos dos meses:

     0 de 1

 [Ver el foro de soporte](https://wordpress.org/support/plugin/multi-image-metabox/)

## Donar

¿Te gustaría apoyar el progreso de este plugin?

 [ Dona a este plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=A4P2WCN4TZK26&lc=FR&item_name=Wabeo&item_number=1)