Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 946 through 960 (of 3,724 total)
  • Author
    Posts
  • in reply to: load post_status into select field #47058
    PeterPeter
    Moderator

    Hello Nick,

    You can use a form hook like rwmb_frontend_after_save_post or the action hook rwmb_{$field_id}_after_save_field to update the post status based on the custom field value. Here is an example https://support.metabox.io/topic/controlling-post-status-in-front-end-dashboard/#post-31734

    Following the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#post-actions
    https://docs.metabox.io/actions/rwmb-after-save-field/

    in reply to: 12 Columns not working #47056
    PeterPeter
    Moderator

    Hello Oskar,

    The default number of columns is 12. So the setting won't be generated to the PHP code. Actually, it only works if you change the number of columns to a different from 12 then you can see an additional HTML + column class. I see that it works properly and is not an issue with the columns.

    in reply to: Hide Custom Field Type #47055
    PeterPeter
    Moderator

    Hello Nick,

    The field type hidden doesn't have the label, it is different from your custom field where you have the field label and input but can show/hide them. You can follow my suggestion above to create a custom checkbox and show/hide the field by JS code.
    If you are not able to complete the task, we offer a customization service. Please contact us here https://metabox.io/contact/ for more details.

    in reply to: Multiple custom fields in one post type, how to order them? #47054
    PeterPeter
    Moderator

    Hello Oskar,

    As far as I know, it isn't possible. WordPress itself doesn't support an option to set the order of meta boxes when displaying on the editing page. The user can drag and drop meta boxes to change the order as well.

    in reply to: Error on Image Advanced + MB Group #47046
    PeterPeter
    Moderator

    Hello,

    Then you can deactivate the Image Optimizer plugin when using the cloneable group on the editing page. I will forward this topic to the development team to check the compatibility between Meta Box and Image Optimizer.

    in reply to: There seems to be a lot of issues lately .. why is that? #47044
    PeterPeter
    Moderator

    Hello Zenjukai,

    Please share your demo site admin account by submitting this contact form https://metabox.io/contact/
    I will take a look.

    Thank you.

    in reply to: Show Multiple Clone Fields in Form #47043
    PeterPeter
    Moderator

    Hello Rebecca,

    The cloneable feature doesn't support adding a number of clone entries like that. I will inform the development team to consider supporting this option in future updates.

    PeterPeter
    Moderator

    Hello,

    Do you mean "required fields"? So I think it is working correctly.

    in reply to: CPT Blank Screen #47041
    PeterPeter
    Moderator

    Okay, if this happens again, please share the debug log so we can understand what's wrong on your site.

    Thank you.

    PeterPeter
    Moderator

    Hello Marco,

    Do you have any other settings that set the requirement for the file_upload field? A custom code or a custom field setting.
    I just use a simple file_upload field without any specific settings and don't see that issue.

    in reply to: Error on Image Advanced + MB Group #47027
    PeterPeter
    Moderator

    Hello,

    I use the code above to create a group field and subfields on my local site, add a page and save with some sample value but don't see that issue. Please check these screenshots https://imgur.com/a/49B1vCE

    You can try to deactivate all plugins except Meta Box, MB Group, switch to a WordPress theme and check the issue again.

    in reply to: Drag & Drop Issue (or Important Missing Feature Request) #47026
    PeterPeter
    Moderator

    Hello Peter,

    In the latest version of MB AIO 1.31.0 or MB Builder 4.9.7, you can drag and drop a subfield from a group field to another group field or in/outside the group field to be a top field.

    in reply to: AIO 1.31.0 Not Saving Group Fields via API #47022
    PeterPeter
    Moderator

    Hello Cameron,

    Can you share the group field settings and sub-fields that you try to update the value via POST API? I try with simple group field

    'fields'   => [
        [
            'name'              => __( 'Group', 'your-text-domain' ),
            'id'                => $prefix . 'group_ubce2rqmfm',
            'type'              => 'group',
            'fields'            => [
                [
                    'name'              => __( 'Text', 'your-text-domain' ),
                    'id'                => $prefix . 'text_wulikp8w5km',
                    'type'              => 'text',
                ],
            ],
        ],
    ],

    and I can update the subfield text value with POST API properly when using the latest version MB AIO 1.31.0.
    Also, do you use any caching plugins on your site or on your hosting? Please disable them all and recheck this issue.

    in reply to: Hide Custom Field Type #47021
    PeterPeter
    Moderator

    Hello Nick,

    What is the class that you extended to create the custom field type? You can extend any field class to create your own field, add some HTML to the field appearance like a checkbox and create some custom CSS, JS code to show or hide the field. Following the documentation
    https://docs.metabox.io/creating-new-field-types/
    For example:

    
    class RWMB_Custom_Type_Field extends RWMB_Input_Field {
        public static function html( $meta, $field ) {
    
            // Key.
            $key                       = isset( $meta[0] ) ? $meta[0] : '';
            $attributes                = self::get_attributes( $field, $key );
            $attributes['placeholder'] = $field['placeholder']['key'];
            $html                      = sprintf( '<input %s>', self::render_attributes( $attributes ) );
    
            // Value.
            $val                       = isset( $meta[1] ) ? $meta[1] : '';
            $attributes                = self::get_attributes( $field, $val );
            $attributes['placeholder'] = $field['placeholder']['value'];
            $html                     .= sprintf( '<input %s>', self::render_attributes( $attributes ) );
    
            $html                     .= '<input type="checkbox"'; // add your own code to the field appearance.
    
            return $html;
        }
    }
    

    I hope that makes sense.

    in reply to: Custom fields not displayed/editable in editor #47012
    PeterPeter
    Moderator

    Hello Fabian,

    Can you please share your site admin account by submitting this contact form?
    https://metabox.io/contact/

    I will take a look at this issue.

Viewing 15 posts - 946 through 960 (of 3,724 total)