Tagged: file upload, image, metabox, upload, upload media
- This topic has 5 replies, 2 voices, and was last updated 5 years, 3 months ago by
bobstew.
-
AuthorPosts
-
-
October 21, 2016 at 5:31 am #7454
bobstewMemberThe reordering of ‘field’ ‘type’ => ‘upload’ was working fine.
But then the client updated WordPress and now the reordering is not working. We are now running WP 4.6.1 – PikList 0.9.9.9I’ve checked this post – https://piklist.com/support/topic/reordering-not-working-on-images/ – but it doesn’t seem to address my issue ( I think).
Here is my code for the media upload:
piklist('field', array( 'type' => 'file' ,'field' => 'upload_media' ,'scope' => 'post_meta' ,'label' => __('Add File(s)','piklist') ,'description' => __('Add images to a Report.','piklist') ,'options' => array( 'modal_title' => __('Add File(s)','piklist') ,'button' => __('Add','piklist') ) ));thanks!
-
October 21, 2016 at 5:44 am #7455
bobstewMemberOh -this may be due to an update of WPML.
-
October 26, 2016 at 6:09 am #7460
bobstewMemberI’ve disabled WPML and the reordering of images in the metabox field is not working. Also it seems to limit me to 10 images. This all occurred after updating to WP 4.6.1
-
October 27, 2016 at 10:48 am #7462
bobstewMemberI’ve disabled all the plugins except pikList and I’m still having the problem. Also I noticed that I did have custom-fields enabled as part of defining the post type
'report' => array( 'labels' => piklist('post_type_labels', 'Report') ,'title' => __('Enter a new Report Title') , 'supports' => array( 'title' , 'editor' , 'post-formats' , 'thumbnail' , 'custom-fields' , 'excerpt' , 'author' , 'revisions' )So I took that out. I also put this code in functions:
function fix_metabox() {remove_post_type_support( 'report', 'custom-fields', 100 ); } add_action( 'init' , 'fix_metabox' );I did that because of this post:
I’m using pikList 0.9.9.9
Now 50% of the time the reordering will get saved – the rest of the time it orders by input date ( I think). Anyway – its acting a bit flakey.
-
October 30, 2016 at 10:03 pm #7469
SteveKeymasterAre you using this field for Posts? I can’t reproduce it.
-
November 1, 2016 at 11:27 am #7479
bobstewMemberI’m using it for a custom post-type called “report”
-
-
AuthorPosts
- You must be logged in to reply to this topic.