Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterNo, you don't need to. The update only sets the default password_strength to weak, so, it's fine to keep it.
Anh Tran
KeymasterHi Cedric,
To be able to set a custom attribute for title, you need to create a text field and put it in the meta box (which has ID in the shortcode), like this:
add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) { $meta_boxes[] = [ 'title' => 'Your title', 'id' => 'your-id', 'fields' => [ [ 'title' => 'Post title', 'id' => 'post_title', 'disabled' => true, ], // Other fields here ], ]; } );And in your shortcode, don't include the
post_fieldsparameter:[mb_frontend_form id="your-id"]March 5, 2020 at 4:04 PM in reply to: ✅User profile email text field not showing address using user_email as ID #18471Anh Tran
KeymasterHi Nick, you probably need to use a filter to change the value displayed:
add_filter( 'rwmb_user_email_field_meta', function( $meta, $field, $saved ) { $user = wp_get_current_user(); return $user->user_email; }, 10, 3 );Anh Tran
KeymasterHi Nick,
Zoom is saved in the post meta. So, the plugin will take the value from the post meta, instead of pulling from the parameter.
Anh Tran
KeymasterHi Jackky, this issue relates to the sanitization mechanism. Please see this blog post for details and fix.
March 5, 2020 at 3:57 PM in reply to: ✅Fatal Error with Elementor : undefined function get_current_screen() #18468Anh Tran
KeymasterHi Johann,
Thanks for your feedback. We'll check and fix the bug!
Anh Tran
KeymasterHi Sergio,
We haven't had an extension for WooCommerce yet. For now, the MB Frontend Submission might work for WooCommerce (with simple fields like price), but we haven't tested it yet.
Anh Tran
KeymasterHi, we've released a new version for MB User Profile 2 days ago addressing this bug. Please update.
If you're using AIO (which hasn't released a new version yet), please set the
password_strength="weak"in the login shortcode.Anh Tran
KeymasterHi FED,
This is the sanitization mechanism. Please see this blog post for details and the fix.
Anh Tran
KeymasterHi netalys,
You probably need to set attribute
disabledorreadonlyfor the title field. Please see this blog post to know how to create custom settings for post fields.Anh Tran
KeymasterHi Jessica,
Can you please check that if you choose to store custom fields in a custom table? Please go to Settings tab in the MB Builder (I guess you're using it), and scroll to bottom to see if the checkbox for custom table is checked.
And do the fields show up on the back end?
February 29, 2020 at 12:01 AM in reply to: ✅Field conditional logic doesn't work with Gutenberg #18432Anh Tran
KeymasterHi Yumiko,
I found the problem. The
post_typeis not a Meta Box field, so using it the normal way doesn't work. You need to use outside conditions.Change your code to:
add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) { $prefix = ''; $meta_boxes[] = array ( 'title' => esc_html__( 'test', 'text-domain' ), 'id' => 'test', 'post_types' => array( 0 => 'post', 1 => 'page', 2 => 'general', ), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array ( 'id' => $prefix . 'post_mnfi92e2ko', 'type' => 'post', 'name' => esc_html__( 'Post', 'text-domain' ), 'post_type' => 'page', 'field_type' => 'select_advanced', 'class' => 'your-custom-class', ), ), ); return $meta_boxes; } );Note that I added a
your-custom-classto set a CSS class for your field. And then add the following code to your theme'sfunctions.phpfile (or using a functionality/Code Snippet plugin):add_filter( 'rwmb_outside_conditions', function( $conditions ) { $conditions['.your-custom-class'] = [ 'visible' => ['post_type', 'page'], ]; return $conditions; } );Anh Tran
KeymasterHi,
The
wysiwygeditor uses wp_editor() function to render the editor. So it might use the same hooks as the default editor (I'm not 100% sure about that, this need to be checked and confirmed). You can try disable Gutenberg first, since tinyMCE in Gutenberg is heavily customized and hooks might not work.Anh Tran
KeymasterI see. For
date,timefields, Meta Box uses its own field type. You probably need to create a custom field type to get rid of the overriding from the plugin.Anh Tran
KeymasterHi arkonisus,
Thanks for your feedback. The year 2000 is interesting. I haven't experienced a similar issue. Let me check that and fix the bug.
-
AuthorPosts