Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello Nick,
You can use a form hook like
rwmb_frontend_after_save_postor the action hookrwmb_{$field_id}_after_save_fieldto 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-31734Following the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#post-actions
https://docs.metabox.io/actions/rwmb-after-save-field/Peter
ModeratorHello 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.
Peter
ModeratorHello 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.November 28, 2024 at 10:16 PM in reply to: Multiple custom fields in one post type, how to order them? #47054Peter
ModeratorHello 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.
Peter
ModeratorHello,
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.
November 27, 2024 at 10:45 PM in reply to: There seems to be a lot of issues lately .. why is that? #47044Peter
ModeratorHello Zenjukai,
Please share your demo site admin account by submitting this contact form https://metabox.io/contact/
I will take a look.Thank you.
Peter
ModeratorHello 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.
November 27, 2024 at 10:24 PM in reply to: File Upload Issue: Mandatory 2 Files Requirement Despite Configuration #47042Peter
ModeratorHello,
Do you mean "required fields"? So I think it is working correctly.
Peter
ModeratorOkay, if this happens again, please share the debug log so we can understand what's wrong on your site.
Thank you.
November 26, 2024 at 11:15 PM in reply to: File Upload Issue: Mandatory 2 Files Requirement Despite Configuration #47028Peter
ModeratorHello Marco,
Do you have any other settings that set the requirement for the
file_uploadfield? A custom code or a custom field setting.
I just use a simplefile_uploadfield without any specific settings and don't see that issue.Peter
ModeratorHello,
I use the code above to create a
groupfield 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/49B1vCEYou can try to deactivate all plugins except Meta Box, MB Group, switch to a WordPress theme and check the issue again.
November 26, 2024 at 10:53 PM in reply to: Drag & Drop Issue (or Important Missing Feature Request) #47026Peter
ModeratorHello 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.
Peter
ModeratorHello Cameron,
Can you share the
groupfield settings and sub-fields that you try to update the value via POST API? I try with simplegroupfield'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
textvalue 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.Peter
ModeratorHello 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.
Peter
ModeratorHello 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.
-
AuthorPosts