Forum Replies Created
-
AuthorPosts
-
February 8, 2023 at 10:53 PM in reply to: ✅Change custom field column widths displayed through shortcode #40454
Peter
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-codeFebruary 7, 2023 at 10:26 PM in reply to: ✅Placing a custom field into woocommerce product inventory tab #40433Peter
ModeratorHello,
Currently, Meta Box does not support adding custom fields to the product data section of WooCommerce. You can try to use a third-party plugin to do that and also output the option on the frontend.
February 7, 2023 at 10:07 PM in reply to: Gutenberg Block with Relation does not work anymore #40432Peter
ModeratorHello,
If you view the block in the admin area, please remove this line in your code
$post_id = get_the_ID();If you view the block in the frontend, you can keep it.
If it still does not work, please share your site credentials (should be a staging site so I can make some tests there) to the contact form https://metabox.io/contact/, and let me know where I can find your code. I will take a closer look.
Peter
ModeratorHello,
If you are using the custom table, each custom field is a column and all field values of a post are saved to one row. So you can try to use an SQL query to get all field values associated with a post based on the provided post ID.
For example:
"SELECT * FROM your_table WHERE ID = { $post_id }"Please refer to the documentation https://docs.metabox.io/extensions/mb-custom-table/#query-posts-with-wp_query
-
AuthorPosts