Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello Nick,
I create a custom field type following the documentation https://docs.metabox.io/creating-new-field-types/
and I can use the jQuery validation, frontend filter validation properly. Here is the example code:
add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) { $meta_boxes[] = [ 'title' => 'Profile', 'id' => 'post-profile', 'post_types' => 'post', 'fields' => [ [ 'name' => 'Hotline', 'id' => 'hotline', 'type' => 'phone', ], ], 'validation' => [ 'rules' => [ 'hotline' => [ 'required' => true, 'minlength' => 7, ], // Rules for other fields ], 'messages' => [ 'hotline' => [ 'required' => 'hotline is required', 'minlength' => 'hotline must be at least 7 characters', ], // Error messages for other fields ], ], ]; return $meta_boxes; } ); add_filter( 'rwmb_frontend_validate', function( $validate, $config ) { // Check if users have selected files for an image upload field. if ( empty( $_POST['hotline'] ) ) { $validate = 'Please add a phone number'; } return $validate; }, 10, 2 );Peter
ModeratorHello Yumiko,
Can you please share more details of the issue on your site? Because I don't know what exactly the issue is. Let me know the callback function, other field values, settings page ... and screenshots of them.
Peter
ModeratorHello metafan,
I'm sorry about this experience but it isn't solved. I will let you know when this event is added back to the MB Blocks plugin.
Peter
ModeratorHello Nick,
The filter
rwmb_frontend_validatedoesn't pass the field settings to the callback function. You can use the helper functionrwmb_get_field_settingsto get the field settings.
Please follow the documentation https://docs.metabox.io/functions/rwmb-get-field-settings/Peter
ModeratorHello,
You can go to the My Account page, login to your account and download the Meta Box extension plugins to install it on your site manually. Please check this screenshot https://imgur.com/0M047T7
Peter
ModeratorHello Jorge,
I don't see any specific settings or an addon plugin when they use ACF to create custom fields for Squirrly so I think it will work with Meta Box. Can you try to create the same field ID and see if it works?
December 18, 2024 at 10:22 PM in reply to: Not allowed to edit a post published through MB Frontend Submission #47208Peter
ModeratorHello,
If you use the MB frontend shortcodes to show the form and dashboard in the frontend without using Bricks, do they work on your site? Please follow the documentation
https://docs.metabox.io/extensions/mb-frontend-submission/
I think the issue arises from the Bricks element itself, not from Meta Box.Peter
ModeratorHello Jacques,
You had a similar issue in the past, here is the topic https://support.metabox.io/topic/dont-know-where-the-settings-are-and-no-longer-working-upon-upgrading/
I already replied to this issue in the ticket system:
I'm not able to edit the theme file on your test site. But I suggest you check two files that get the slider option of the category and show the HTML elements. /wp-content/themes/thrill/partials/header/title.php /wp-content/themes/thrill/includes/title.php or contact your developer who creates this custom theme and ask them to check the issue for you.Can you please recheck the file that I suggested?
Peter
ModeratorHello Neha,
Do you try to switch the theme to a WordPress theme also? If you still cannot edit a field group, please share your site admin account by submitting this contact form https://metabox.io/contact/
I will take a look.December 17, 2024 at 10:04 AM in reply to: MB Custom Posts With No Custom Fields are Blank Pages In Edit #47195Peter
ModeratorHello Brent,
The custom fields when editing a CPT are displayed properly on my site, screenshot https://imgur.com/AARZKaW
Please try to clear all caches (plugin, browser, hosting ...) then deactivate all plugins except Meta Box, MB AIO, switch to a WordPress theme and check the issue again.
December 16, 2024 at 9:42 PM in reply to: Taxonomy and Related CPT are not being copied when duplicating CPT using Polylan #47192Peter
ModeratorHello Antoine,
Maybe the data is copied exactly to the post in the second language, but the data (post, term IDs) is in the first language so it won't display when you edit the post.
It would need to have some custom code from the Polylang side to adjust the ID after you click the Plus icon to translate the post.Peter
ModeratorHello Alan and Tom,
Thank you for your feedback. We already had a task in the backlog development to support an option to set the capability for the taxonomy. I will inform the development team to increase the priority of the task and include the feature in future updates.
Peter
ModeratorHello,
Thanks for the details. I see that issue on the demo site. I'm escalating the issue to the development team to take a look and get back to you later.
December 16, 2024 at 2:26 PM in reply to: field builder is generating fields and tabs when tab is requested #47188Peter
ModeratorHello Fabien,
Can you please share some screenshots of the field group and the editing page so I can understand the issue? Please notice that the tab field must be added to the field group as the first field to make it work. See this screenshot https://imgur.com/uBLrNyr
Peter
ModeratorHello Clint,
Currently, MB Elementor Integrator plugin doesn't support showing relationship data in the Elementor builder. You can try to use the relationship shortcode to see if it helps
https://docs.metabox.io/extensions/mb-relationships/#shortcodeI will inform the development team to consider supporting this feature in future updates.
-
AuthorPosts