meta-box icon indicating copy to clipboard operation
meta-box copied to clipboard

image_advanced only shows one image, no matter how many images is defined in max_file_uploads setting

Open mviniciosbarreto opened this issue 9 years ago • 11 comments

Hi,

I am using the Meta Box to develop the metaboxes fields of theme, however something weird is happening to the image_advanced field, always when I try to upload more than one image it shows only one image once I click the update post button. This never happened before with other projects. Thank you for your help.

Here is my environment:

WordPress 4.3.4 Meta Box Plugin 4.8.7

mviniciosbarreto avatar Jun 28 '16 19:06 mviniciosbarreto

Same problem with WordPress 4.5.3 and Meta Box 4.8.7

E957 avatar Jul 26 '16 12:07 E957

Please post the code you are using for the meta box

funkatron82 avatar Jul 26 '16 12:07 funkatron82

array( 'name' => esc_html__( 'Slides', 'textdomain' ), 'id' => "slide_imgadv", 'type' => 'image_advanced', 'max_file_uploads' => 5, ),

E957 avatar Jul 26 '16 12:07 E957

I'm not able to replicate this issue. Please download the github version of the plugin and let us know if it still persists

funkatron82 avatar Jul 26 '16 18:07 funkatron82

Thank you funkedgeek but the issue persists. Same issue with PLUPLOAD IMAGE UPLOAD meta box, using this code. array( 'name' => esc_html__( 'Plupload Image Upload', 'textdomain' ), 'id' => 'plupload', 'type' => 'plupload_image', 'max_file_uploads' => 4, ),

E957 avatar Jul 27 '16 08:07 E957

Any errors in the JavaScript console?

On Wed, Jul 27, 2016 at 3:18 AM E957 [email protected] wrote:

Thank you funkedgeek but the issue persists. Same issue with PLUPLOAD IMAGE UPLOAD meta box, using this code. array( 'name' => esc_html__( 'Plupload Image Upload', 'textdomain' ), 'id' => 'plupload', 'type' => 'plupload_image', 'max_file_uploads' => 4, ),

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/rilwis/meta-box/issues/912#issuecomment-235518024, or mute the thread https://github.com/notifications/unsubscribe-auth/ABGyXsZTRg9Xht3ppauhsFzaFBVCivB0ks5qZxRmgaJpZM4JAdQm .

funkatron82 avatar Jul 27 '16 11:07 funkatron82

Hi, No errors or warning in console. Image advanced field is showing images on upload but saving only last selected image. Kindly fix this issue asap.

Thanks

sungraiz avatar Sep 07 '16 09:09 sungraiz

Can you post the html that is created by the field?

funkatron82 avatar Sep 10 '16 11:09 funkatron82

Hi, Pardon but i am not sure which HTML you are talking about. The issue in my case is, when i choose multiple images from WordPress gallery then the advance image filed render them properly and shows all images correctly but when i goes to save the post then all images disappear and only last selected image remains. You can see the below video for more explanation.

http://jmp.sh/IHZPQnx

Thanks

sungraiz avatar Sep 12 '16 06:09 sungraiz

Hi, I have uploaded the config file. You can see the plugins list in below screenshot.

https://drive.google.com/a/inspirythemes.com/file/d/0B53hX4hWJvZ3TUZscXFnNk9KTDg/view?usp=drivesdk

FYI: I have checked it after disabling all plugins but the issue remains.

Kindly help us asap.

Thanks config-meta-boxes.zip

sungraiz avatar Sep 17 '16 15:09 sungraiz

Can you check this with the latest version on GitHub? I changed a few things in the media fields so they should work as intended

funkatron82 avatar Jan 05 '17 13:01 funkatron82