This plugin adds a meta box to upload multiple images for posts and pages.
This plugin adds a meta box to upload multiple images for posts and pages. You can enable it for custom post types also, please see installation instructions.
This function can be called from any template file to get attached images for the page/post being viewed.
It returns an array of the attached image URL.
It take only one argument:
post_id (integer) to get images linked to a specific post
http://www.example.com/image-1.png
[1] => http://www.example.com/image-2.png
)
?>
/wp-content/plugins/
directoryIf you need to enable this meta box for your custom post type for example ‘book’. Just edit the multi-image-upload.php as shown below
Replace:
$this->post_types = array(‘post’, ‘page’);
With:
$this->post_types = array(‘post’, ‘page’, ‘book’);
Use this plugin if you want to quickly add a feature to upload multiple images for a page, post or custom post type.
.live()
replace with .on()