Forum Replies Created
-
AuthorPosts
-
February 9, 2023 at 10:14 PM in reply to: MB Custom Post Type causes PHP Fatal error after upgrading to PHP 8.0 #40465
Peter
ModeratorHello Steven,
Please try to deactivate all plugins except Meta Box and MB extensions, switch to a standard theme of WordPress and check this issue again. If the issue persists, please copy your site to a staging site then share the credentials to this contact form https://metabox.io/contact/, I will take a closer look.
Peter
ModeratorHello Julie,
It should be in 24 hours.
Peter
ModeratorHello,
Yes, I understand this case. Actually, the
user_emailis not a custom field when saving the user profile. If you check the database, it is saved to the tablewp_users, not the tablewp_usermeta. Using the Meta Box custom field to relocate it on the page is a hacky way.I hope that makes sense.
February 8, 2023 at 10:53 PM in reply to: ✅Change custom field column widths displayed through shortcode #40454Peter
ModeratorHello,
Can you please try to deactivate all plugins except Meta Box, MB AIO and switch to a standard theme of WordPress then recheck this issue? The width of the input box can be affected by the style of the theme or a plugin on your site.
Peter
ModeratorHello,
Thanks, I understand that you need to display the saved value when editing the post. I already said you need to use the
selectedattribute of the<option>tag to display the saved value first instead ofLowvalue. You can read more on this topic https://wordpress.stackexchange.com/questions/105471/how-to-mark-an-option-as-selectedFor example:
<?php if( $meta == 'High' ) { $select = 'selected'; } ?> <select id="alert_type"> <option value="Low" data-img_src="/wp-content/uploads/2022/12/Low.png">Low</option> <option value="High" <?php echo $select ?> data-img_src="/wp-content/uploads/2022/12/High.png">High</option> <option value="Usage" <?php echo $select ?> data-img_src="/wp-content/uploads/2022/12/Usage.png">Usage</option> <option value="Non-Usage" data-img_src="/wp-content/uploads/2022/12/NonUsage.png">Non-Usage</option> </select>Then you can select
HighandUsagevalue to see how it works.Please note that, supporting customization code is beyond our scope of support, you can read more here https://support.metabox.io/topic/support-policy/.
If it still does not work, you can request a customization service by submitting here https://metabox.io/contact/Peter
ModeratorHello,
Can you please share the code that registers the custom table also? The code above is used to register the custom fields.
Please read more on the documentation https://docs.metabox.io/extensions/mb-custom-table/#using-custom-tables-with-codePeter
ModeratorHello there,
I see the issue when the post is still saved but the field title is empty, I can also reproduce it on my local site. But I do not see the issue with
core/buttonandcore/media-textlike your screenshot.If you remove the MB block, does the issue persist?
Peter
ModeratorHello Sam,
The field ID is user_email which is the default field ID of WordPress and the custom field created by Meta Box does not work in the admin area so you will not see anything output with Beaver Builder.
You can try to change the field ID to another one like
my_user_email, add the value for the field and recheck this issue.Please read more about the default field IDs here https://docs.metabox.io/extensions/mb-user-profile/#default-fields
Peter
ModeratorHello Julie,
If you have a license issue, please contact us here https://metabox.io/contact/
our support team will help you to fix it.February 8, 2023 at 9:58 PM in reply to: ✅Change custom field column widths displayed through shortcode #40447Peter
ModeratorHello Sam,
I see you are using the
numberfield and it might not work correctly. Please use thetextfield and check this feature again.Peter
ModeratorHello Brandon,
Thanks for sharing the solution.
I see it is the correct way to filter the field value when outputting with the helper function rwmb_meta(). Refer to the documentation https://docs.metabox.io/filters/rwmb-meta/
February 7, 2023 at 11:18 PM in reply to: ✅Change custom field column widths displayed through shortcode #40438Peter
ModeratorHello Sam,
This option is available when you use the
textfield and it works correctly on my demo site in both backend and frontend (shortcode). Can you please share some screenshots of the issue on your site and share the site URL? I will help you to check the issue.Peter
ModeratorHello,
I've informed the development team to check this issue and I will get back to you when I have some information.
Peter
ModeratorHello Ben,
There is no option/feature to limit the number of boxes checked. It could be a feature request for this field. Meanwhile, you need to create some custom JavaScript code to do that.
Peter
ModeratorHello there,
Looking at your screenshot, I see the column Labels display one field value as well. So it could be an issue with other posts and other field values. Can you please share a screen record after you edit the second post and save the changes?
Also, please share the code that creates the custom fields and custom table on your site. If you are using the builder, please refer to the documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code -
AuthorPosts