image_advanced only shows one image, no matter how many images is defined in max_file_uploads setting
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
Same problem with WordPress 4.5.3 and Meta Box 4.8.7
Please post the code you are using for the meta box
array( 'name' => esc_html__( 'Slides', 'textdomain' ), 'id' => "slide_imgadv", 'type' => 'image_advanced', 'max_file_uploads' => 5, ),
I'm not able to replicate this issue. Please download the github version of the plugin and let us know if it still persists
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, ),
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 .
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
Can you post the html that is created by the field?
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
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
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