WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Willy Bahuaud v1.3.5

Multi Image Metabox

Add a multi-image metabox to your posts, pages and custom post types

Multi Image Metabox

The facts

Rating
4.9★ from 11
Active installs
7k+
Price
Free
Last updated
28 Nov 2017
Added
Dec 2012
Requires WP
3.0
Tested up to
WP 3.5.2
Downloads
21,287

Our analysis

AI-assisted

Multi Image Metabox is a WordPress plugin that allows you to upload and link multiple images to a single post. It provides a metabox for image management, where images can be reordered via drag and drop. The plugin also includes functions to retrieve linked images and allows customization of the number of images and post types through hooks.

This plugin is suitable for users who need to manage multiple images for their posts, particularly those who are comfortable editing theme files to set custom configurations.

Best for: This plugin suits users who need to manage multiple images in their WordPress posts and have some technical skills.

What it does well

  • Allows uploading and linking multiple images to one post
  • Images can be reordered using drag and drop
  • Includes functions to retrieve linked images
  • Customizable number of images and post types via hooks

Where it falls short

  • Requires editing of theme files for customization
  • Limited information on usage and configuration

Verdict

Multi Image Metabox provides a straightforward solution for managing multiple images in posts, but it may require some technical knowledge for optimal use.

From the developer

Willy Bahuaud's own description of Multi Image Metabox, lightly tidied.

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”.

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

    45,
    ‘image1’ => 5,
    ‘image2’ => 6,
    ‘image3’ => 12,
    ‘image6’ => 20,
    ‘image7’ => 15
    );

    //Empty pictures ar not returned

    ?>

    get_images_src()

    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

    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…
    )
    );

    ?>

    get_multi_images_src()

    Same as get_image_src(), but return two sizes for all the pictures.

It take for agruments whose are :

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for custom content structures.

Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...

Free 300k+ installs 4.9★ (2,428)
Advanced Custom Fields

ACF helps customize WordPress with powerful, professional and intuitive fields. Proudly powering over 2 millio...

Free 2M+ installs 4.5★ (1,438)
Simple Custom Post Order

Easily reorder posts, pages, custom post types, and taxonomies with intuitive drag-and-drop sorting in the Wor...

Free 300k+ installs 4.8★ (569)
WP Activity Log

The #1 user-rated activity log plugin for event logging, activity monitoring and change tracking.

Free 300k+ installs 4.7★ (488)
Custom Post Type UI

Admin UI for creating custom content types like post types and taxonomies

Free 1M+ installs 4.6★ (276)