Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi Kevin,
Thank you for your idea. I will create a feature request for the developer team to support adding the form ID by using meta box ID.
For now, we can use two hooks
rwmb_frontend_before_formandrwmb_frontend_after_formto create a wrapper for the form with the meta box ID.add_action( 'rwmb_frontend_before_form', function( $config ) { echo '<div id="' . $config['id'] . '" class="form-wrapper">'; } ); add_action( 'rwmb_frontend_after_form', function( $config ) { echo '</div>'; } );Get more details in the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#general-hooks.
Long Nguyen
ModeratorHi,
To custom error messages, please use the validation in the meta box settings by coding (not available for MB Builder).
$meta_boxes[] = [ 'title' => 'Meta Box Title', 'fields' => array( ... ), 'validation' => array( 'rules' => array( 'field_id' => array( 'required' => true, 'minlength' => 7, ), ), // Optional override of default error messages 'messages' => array( 'field_id' => array( 'required' => 'Password is required', 'minlength' => 'Password must be at least 7 characters', ), ) ) ];Long Nguyen
ModeratorHi Bret,
I think you can create two CPTs, one is Office with posts office1, office2 ..., the other is Metropolis with posts metropolis1, metropolis2 ...
Create custom fields street, phone ... and assign them to the CPT Office in the Builder. Connect one or more Office posts to a Metropolis post by MB Relationships.
December 16, 2020 at 2:13 PM in reply to: ✅Problem with PO/MO in new version — labels but revert to English after saving #23564Long Nguyen
ModeratorHi guys,
The issue about labels auto revert to English after saving has been fixed in the new version of MB Custom Post Type 2.0.7 or MB AIO 1.12.1.
Long Nguyen
ModeratorHi,
You can use the setting js_options to format the date. If you are using the MB Builder, please use the dot notation to apply the setting for the field
date. Screenshot https://share.getcloudapp.com/5zud9Jkz.It shows in the Beaver editor as well https://share.getcloudapp.com/NQuK7vPL.
Long Nguyen
ModeratorHi,
Please try to export all products via WordPress Export in an XML file by going to Admin Dashboard > Tools > Export > Choose Products and Download export file.
It will help you export exactly the meta value saved in the database. Screenshot: https://share.getcloudapp.com/5zud9J7w.
Long Nguyen
ModeratorHi,
The cloneable field
select_advancedwith the setting'multiple' => truesaves the serialized array (array of array) value in the database. It's very complicated to export and import the product info by WooCommerce Exporter or another import/export plugin.You can try to export all products via WordPress Export in an XML file by going to Admin Dashboard > Tools > Export > Choose Products. Then import the XML file on other sites.
December 15, 2020 at 6:43 PM in reply to: ✅Duplicate output on front end from rwmb_the_value helper function in Oxygen #23549Long Nguyen
ModeratorHi,
I also experience that. For the simple field, you can use the option Custom field/Meta Options to get the field value immediately in the Builder. Screenshot https://share.getcloudapp.com/xQuY6jQ2.
For the cloneable field or the field that has the setting
'multiple' => true, you should use a custom function to show the field value in the Builder.
https://docs.metabox.io/fields/checkbox-list/#settingsLong Nguyen
ModeratorHi Eric,
When using Tabs with Settings Page, you should define the
tabin the meta boxes setting. Please follow this sample code https://github.com/wpmetabox/library/blob/master/extensions/mb-settings-page/conditional-tabs.php.Let me know how it goes.
Long Nguyen
ModeratorHi Bret,
WordPress does not support an option to delete the custom field value aka post meta (key and value). You can use this plugin to delete the custom field in the database https://wordpress.org/plugins/bulk-delete/.
Or use the function delete_post_meta(), and refer to this topic https://wordpress.stackexchange.com/questions/246684/remove-post-meta-keys.
December 15, 2020 at 6:31 AM in reply to: ✅Duplicate output on front end from rwmb_the_value helper function in Oxygen #23535Long Nguyen
ModeratorHi,
Please try to wrap the helper function
rwmb_the_value()inside a custom function by using the plugin Code Snippets. It will show only one list as well. Screenshots:
https://share.getcloudapp.com/2Nu0l2jo
https://share.getcloudapp.com/o0uqPkq8function get_checkbox_list() { rwmb_the_value( 'checkbox_list' ); }Long Nguyen
ModeratorSolved in the new version 2.0.7, please update the plugin to fix the issue.
Long Nguyen
ModeratorHi,
The option
Custom rewrite slugin Meta Box > Taxonomies > Edit/create a taxonomy > Advanced still works as well after Save the Permalinks again.Rewrite slug means to change the default taxonomy slug with your custom slug in the Permalink. Could you please share some screenshots if the problem still persists?
December 14, 2020 at 2:12 PM in reply to: ✅Duplicate output on front end from rwmb_the_value helper function in Oxygen #23529Long Nguyen
ModeratorHi Steve,
Could you please let me know how did you show the field value on the front end via Oxygen Builder? A shortcode or a function?
Also, please share some screenshots when you edit the page/post with the Oxygen Builder, I will try to reproduce the issue on my local site.
Refer to this topic: https://support.metabox.io/topic/https-url-of-single-image-original-size/
Long Nguyen
ModeratorHi,
Here is the CSS code to change the label text of radio options.
.radiostyle .rwmb-input label { font-family: serif; font-size: 20px; }You can use the Inspect Tool to check the HTML elements. Screenshot https://share.getcloudapp.com/YEuQZjwk.
-
AuthorPosts