Forum Replies Created
-
AuthorPosts
-
julian
ParticipantHey Long Nguyen,
it works. thank you very very much for your help ๐
julian
ParticipantThanks Long Nguyen,
i see. for me it doesnt matter in which format the data are saved as long the user can has the same format in the date picker in the frontend form (metabox made from code) and in the backend (metabox made by the UI). so that means i need to edit the backend metabox with...
'js_options' => array( 'dateFormat' => 'yy-mm-dd', 'showButtonPanel' => false, ),but this doesnt work.
what does work is to add the entire field within the js-options. what doesn't work is to add only the js-option to the existing field. whether by https://docs.metabox.io/edit-meta-boxes/or setting Custom settings like here https://docs.metabox.io/extensions/meta-box-builder/#custom-settings. how should the custom settings look like for the js-options?
thank you
May 4, 2021 at 1:23 PM in reply to: โ display image of clonable group uploaded from the frontend #27884julian
Participantthe image-upload field seem to store the image differently as the single-image field. the question is which function do i have to use instead of wp_get_attachment_image to fetch the image in the front-end
May 4, 2021 at 1:12 PM in reply to: โ display image of clonable group uploaded from the frontend #27883julian
Participantno, it doesnt work when i upload it (with "upload image" field)...it works only when i choose it from the media library (singe image).
julian
ParticipantThank you Long Nguyen ๐
Great plugin:)))
julian
Participantbtw. can i edit metaboxes codewise which have been crerated by the custom field UI (Meta Box AIO)?
julian
Participanthi Long Nguyen,
thanks for replying. i made it work already. hope that kind of code is clean and secure enough!? what do you think?what i dont wrote is that te value for the amount of clones is set by the user aswell in another form before. so the value has to be part of the post too.
add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) { $meta_boxes[] = [ 'title' => 'Test Meta Box', 'fields' => [ [ 'type' => 'text', 'id' => 'name', 'name' => 'Name', 'clone' => true, 'max_clone' => get_post_meta(htmlspecialchars($_GET['rwmb_frontend_field_post_id']), 'anzahl_tage', true), ], ], ]; return $meta_boxes; } ); -
AuthorPosts