Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Sorry, not yet. This case is beyond the scope support of Meta Box, it needs to create more custom code to do. You can create a service request via this contact form. I will forward it to the development team to check it and get back to you with a quote.
https://metabox.io/contact/Long Nguyen
ModeratorHi,
As I explained above, the setting
user_rolesupports showing custom fields for the current (logging) user role. You are logging with the uservP5rT2bZwhich has the Administrator role, not the Customer role. Can you please log in admin dashboard with the usertest-customer1and check the custom fields?Long Nguyen
ModeratorHi Nicholas,
Yes, it is implemented. Works like the frontend form validate https://docs.metabox.io/extensions/mb-frontend-submission/#validation
add_filter( 'rwmb_profile_validate', function( $validate, $config ) { if ( 'your-meta-box-id' !== $config['id'] ) { return $validate; } if ( empty( $_POST['image_upload_field'] ) ) { $validate = 'Please select at least one image to upload'; // Return a custom error message } return $validate; }, 10, 2 );Long Nguyen
ModeratorHi Kyle,
As I can see the setting default value
stdis working as well for the fieldwysiwygif you use the code to set the HTML as the default value.[ 'name' => __( 'Wysiwyg', 'your-text-domain' ), 'id' => $prefix . 'wysiwyg_ugp9gornk7111', 'type' => 'wysiwyg', 'std' => '<span class="test-123">Test default value</span>', ],If you want to modify the field settings by coding, please use the filter
rwmb_normalize_{$field_id}_field
Refer to this topic https://support.metabox.io/topic/image-upload-vs-image-advanced/#post-33927Long Nguyen
ModeratorHi,
Can you please share the code that creates custom fields and the shortcode on your site? Some screenshots would be better to troubleshoot the issue.
March 31, 2022 at 12:28 PM in reply to: How to clone posts / populate form based on other posts #35384Long Nguyen
ModeratorHi Sam,
The
groupfield saves the subfield values under the meta keygroup_idin the database. So if you want to duplicate agroupfield, please use its ID to update the value. Refer to this documentation
https://docs.metabox.io/extensions/meta-box-group/#getting-sub-field-valuesMarch 31, 2022 at 11:28 AM in reply to: ✅Custom User Fields not showing in WordPress back end #35383Long Nguyen
ModeratorHi,
The setting
user_roleis to used for the current user role. You do not have the rolecustomerto edit the fields.If you also want to edit the field, please use the setting
edited_user_role. Read more on the documentation https://docs.metabox.io/extensions/meta-box-include-exclude/Long Nguyen
ModeratorHi,
You can create a custom columns to show the image and link to the editing post. For example:
add_action( 'init', 'prefix_add_custom_columns', 20 ); function prefix_add_custom_columns() { class Prefix_Custom_Admin_Columns extends \MBAC\Post { public function columns( $columns ) { $columns = parent::columns( $columns ); $position = ''; $target = ''; $this->add( $columns, '_thumbnail_id', 'Column Title', $position, $target ); // Add more if you want return $columns; } public function show( $column, $post_id ) { switch ( $column ) { case '_thumbnail_id': $image = rwmb_meta( '_thumbnail_id', array( 'size' => 'thumbnail' ), $post_id ); if( !empty( $image ) ) { echo '<a href="' . get_edit_post_link( $post_id ) . '"><img src="' . $image['url'] . '" /></a>'; } break; // More columns } } } new Prefix_Custom_Admin_Columns( 'post', array() ); }Read more on the documentation https://docs.metabox.io/extensions/mb-admin-columns/#custom-admin-columns
March 30, 2022 at 9:22 PM in reply to: ✅Website (wordpress) slows down dramatically when I enable Metabox plugin #35377Long Nguyen
ModeratorHi,
Please share your site credentials via this contact form https://metabox.io/contact/. I will help you to troubleshoot the issue.
Long Nguyen
ModeratorHi,
Thanks for your feedback.
Meta Box does not support adding new options when editing posts like that. I'm going to inform the developer team to consider adding it to the to-do list for the future development of the plugin.
Long Nguyen
ModeratorHi,
There is no option to set the default value for the field type
taxonomy, but you can use the custom settingstdfor this field in the Advanced tab and assign it to the term ID. Screenshot https://imgur.com/p2kQdKx
Read more on the documentation https://docs.metabox.io/field-settings/#generalMarch 30, 2022 at 11:03 AM in reply to: ✅Getting Custom Category/Taxonomy field values in Divi ? #35367Long Nguyen
ModeratorHi John,
If Divi builder works with the term meta, it can work with the plugin MB Term Meta which creates the standard meta fields for terms. Please contact Divi support to ask for help with this case.
Or you can use the helper shortcode
[rwmb_meta]to display the field value on the product category page. Read more on the documentation https://docs.metabox.io/shortcode/Long Nguyen
ModeratorHi Alex,
Can you please share some screenshots on your site? And the code that creates the fields and conditional logic.
Please deactivate all plugins except Meta Box, MB extensions and switch to the standard theme of WordPress to avoid any conflicting issues.March 30, 2022 at 10:27 AM in reply to: ✅Adding a custom field as a link to an elementor button #35365Long Nguyen
ModeratorHi,
The shortcode displays the user email as well in the post content of widget Text of Elementor. You might need to contact Elementor support to ask for help with this issue.
Long Nguyen
ModeratorHi Fernando,
In the builder, you can use the helper shortcode
[rwmb_meta]to render the shortcode. For example, field WYSIWYG[rwmb_meta id="wysiwyg_field_id"] -
AuthorPosts