Support Forum ยป User Profile

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: โœ…custom time format doesn't work #28373
    julianjulian
    Participant

    Hey Long Nguyen,

    it works. thank you very very much for your help ๐Ÿ™‚

    in reply to: โœ…custom time format doesn't work #28330
    julianjulian
    Participant

    Thanks 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

    julianjulian
    Participant

    the 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

    julianjulian
    Participant

    no, it doesnt work when i upload it (with "upload image" field)...it works only when i choose it from the media library (singe image).

    in reply to: โœ…Max Clone per post #27655
    julianjulian
    Participant

    Thank you Long Nguyen ๐Ÿ™‚

    Great plugin:)))

    in reply to: โœ…Max Clone per post #27508
    julianjulian
    Participant

    btw. can i edit metaboxes codewise which have been crerated by the custom field UI (Meta Box AIO)?

    in reply to: โœ…Max Clone per post #27505
    julianjulian
    Participant

    hi 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;
    } );
Viewing 7 posts - 1 through 7 (of 7 total)