Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
I do not see that issue on my demo site. The default value of the radio field should be a choice, not on/off. Can you please deactivate all plugins except Meta Box, MB extensions and switch to a standard theme of WordPress then check the issue again?
Please read more on the documentation https://docs.metabox.io/fields/radio/
January 12, 2023 at 11:18 PM in reply to: ✅Use jQuery 'additional-methods.js' to validate 'Image Upload' Filesize #40217Peter
ModeratorHello,
The validation in your code won't work because the rule
filesizeormax_file_sizeis not supported. Please read more on the documentation
https://docs.metabox.io/validation/#advanced-validation
https://jqueryvalidation.org/documentation/#link-list-of-built-in-validation-methodsIf you can create your own JS code to check the file size, you can implement a notice box like JS function alert() and prevent clicking the submit button.
Peter
ModeratorHello there,
To display a map from a settings page on the frontend, you need to add the setting
'object_type' => 'setting'to the second parameter and add the option name to the third parameter of the helper function. For example:$args = [ 'width' => '640px', 'height' => '480px', 'zoom' => 14, 'marker' => true, 'object_type' => 'setting' // here ]; rwmb_the_value( 'my_field_id', $args, 'settings_page_option_name' );Please read more on the documentation https://docs.metabox.io/extensions/mb-settings-page/#data
Peter
ModeratorHello there,
Can you please test this issue with another field group and let me know if the issue persists? If you have a backup of your site, please restore the site and export the field group to a JSON file and share it with me. I will import the field group to my demo site and test this issue there.
January 11, 2023 at 10:07 PM in reply to: ✅Disabling link in Beaver Builder shortcode doesn’t work #40203Peter
ModeratorHello,
MB Relationships is not compatible with Beaver Builder currently so I think the shortcode will not work properly in this case.
Peter
ModeratorHello,
Yes, you can deactivate the single plugin Meta Box FacetWP Integrator to resolve the issue.
Peter
ModeratorHello
WordPress only supports one level of submenu so it is not possible to display a post type menu under a submenu settings page.
January 11, 2023 at 9:31 PM in reply to: ℹ️Save field value => Generate PHP Code not see the code for that #40198Peter
ModeratorAdded to the task also, thanks.
Peter
ModeratorHello,
To translate custom field labels or taxonomy labels, you need to generate the PHP code and add it to the file functions.php and use a translation plugin to scan the text to translate.
You also need to delete them from the builder to avoid any potential issues. Please read more on the documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-codePeter
ModeratorHello there,
Meta Box does not support an option to export posts from any post types. You can use a third-party export plugin to do that. Please refer to these links
https://www.wpallimport.com/export-wordpress/
https://www.smackcoders.com/wp-ultimate-csv-importer-pro.html/January 10, 2023 at 11:58 PM in reply to: Issues using Meta Box Field with Beaver Builder conditional shortcode (if/else) #40192Peter
ModeratorHello,
Beaver Builder conditional logic shortcode is not working with Meta Box properly. If you want to use the Beaver conditional logic, please follow this article https://metabox.io/introducing-beaver-themer-conditional-logic-integration/.
and follow this topic https://support.metabox.io/topic/beaver-builder-conditional-logic-help/
Peter
ModeratorHello,
The admin column uses the helper function rwmb_the_value to show the field value. You can use this filter hook to change the field value when showing on the backend. For example:
add_filter( 'rwmb_the_value', function( $output, $field, $args, $object_id ) { $post_field = rwmb_meta( 'post_xyfc97ama79', $args, $object_id ); if( is_admin() && $field['id'] == 'post_xyfc97ama79') { if( $post_field ) { $output = get_the_title( $post_field ); } } return $output; }, 11, 4 );change the field ID
post_xyfc97ama79with your field ID. Please get more details on the documentation https://developer.wordpress.org/reference/functions/get_the_title/
https://docs.metabox.io/functions/rwmb-the-value/Peter
ModeratorHello there,
Do you mean to add a menu of a custom post type under a menu of the settings page? If yes, it is possible. Please edit the post type in Meta Box > Post Types > Edit a post type > Advanced tab > Show in menu: Show as sub-menu of a settings page. Please check this screenshot https://monosnap.com/file/zzv4E5nAgSoRpltCDUbiBxHqbws83T
January 10, 2023 at 11:01 PM in reply to: ✅Setting a custom field in both settings and custom post type #40188Peter
ModeratorHello there,
I think it is possible but it would need to create some custom code to do that. If you are familiar with coding can follow the suggestion below to create the code on your own.
- create a callback function and hook to the actionmb_settings_page_load
- query to get posts of post type menu and update the field value by using the function update_post_meta()Please read more on the documentation
https://docs.metabox.io/extensions/mb-settings-page/#hooks
https://developer.wordpress.org/reference/functions/update_post_meta/If not, you can create a customization service here https://metabox.io/contact/, our development team will help you with an extra fee.
January 10, 2023 at 10:44 PM in reply to: ℹ️Save field value => Generate PHP Code not see the code for that #40186Peter
ModeratorHello,
Thanks for your feedback.
I also experience that issue on my demo site. I've escalated this issue to the development team to fix it in the next update.
-
AuthorPosts