Exiting Image field delete when update
Support › MB Frontend Submission › Exiting Image field delete when update
- This topic has 8 replies, 3 voices, and was last updated 7 years, 4 months ago by
Infolu Official.
-
AuthorPosts
-
November 26, 2017 at 1:25 PM #7597
KwangGan
ParticipantI just bought Life time bundle and get issue
I have 3 image field include post thumbnail when I update all old exiting image get delete instead not change
mb frontend / metabox last update
November 27, 2017 at 11:14 AM #7619Anh Tran
KeymasterCan you please post the code of meta box so I can check?
Thanks,
AnhNovember 27, 2017 at 3:56 PM #7631KwangGan
Participantadd_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' ); function your_prefix_register_meta_boxes( $meta_boxes ) { $meta_boxes[] = array ( 'id' => 'post-jobs', 'title' => 'post jobs', 'context' => 'normal', 'post_types' => 'jobclsf', 'priority' => 'high', 'fields' => array ( array( 'type' => 'image', 'name' => esc_html__( 'Thumbnail 1', 'rwmb-frontend-submission' ), 'id' => '_thumbnail_id', 'force_delete' => false, 'max_file_uploads' => 1, ), array( 'type' => 'image', 'name' => esc_html__( 'Thumbnail 2', 'rwmb-frontend-submission' ), 'id' => '_thumbnail_id_2', 'force_delete' => false, 'max_file_uploads' => 1, ), array( 'type' => 'image', 'name' => esc_html__( 'Thumbnail 3', 'rwmb-frontend-submission' ), 'id' => '_thumbnail_id_3', 'force_delete' => false, 'max_file_uploads' => 1, ), array ( 'id' => '_jobclsf_cate', 'type' => 'taxonomy', 'name' => 'ประเภทของงาน', 'taxonomy' => 'jobclsf_category', 'field_type' => 'select_tree', ), array ( 'id' => '_jobclsf_address', 'type' => 'text', 'name' => 'Title', 'placeholder' => 'กรุณากรอกพิกัด หรือ ที่อยู่', ), array ( 'id' => 'jobclsf_map', 'type' => 'map', 'name' => 'แผนที่ปฏิบัติงาน', 'address_field' => '_jobclsf_address', ), ), ); return $meta_boxes; }
November 28, 2017 at 2:41 PM #7662KwangGan
Participantany update ?
User both git version and wordpress version
mb front latest
Image still delete
November 28, 2017 at 5:27 PM #7671Anh Tran
KeymasterHi, I'm still checking it. Please wait.
November 28, 2017 at 8:51 PM #7680Infolu Official
ParticipantHello same problem that I'm having reported in post https://support.metabox.io/topic/problems-with-image-type-field/#post-7679
when using the fild type "image" field my images are being deleted, this happens when using the version of metabox 4.12.5.
Thank you for looking at this.
November 29, 2017 at 10:13 AM #7701KwangGan
Participantyeah problem cause by metabox latest not mb front end
December 1, 2017 at 9:51 AM #7722December 1, 2017 at 6:14 PM #7734Infolu Official
ParticipantHi Anh Tran, for me it works perfectly with the update thanks for this.
-
AuthorPosts
- The topic ‘Exiting Image field delete when update’ is closed to new replies.