Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Yes, it is possible. You can exclude an array of term IDs with the field setting
query_args. Please read more on the documentation
https://developer.wordpress.org/reference/classes/WP_Term_Query/__construct/
https://docs.metabox.io/fields/taxonomy/#limit-the-number-of-terms-for-paginationLong Nguyen
ModeratorHi,
Please try to use the helper shortcode [rwmb_meta]. I do not see that issue on my end.
https://docs.metabox.io/shortcode/June 13, 2022 at 10:43 PM in reply to: Huge performance issue with MB Blocks when context => side #36458Long Nguyen
ModeratorHi Mauro,
Thank you for your feedback.
I think it's the main feature of the block editor itself when rendering the changes immediately to see everything on "live" without any delay. I will also inform the development team to consider supporting a filter to change the delay to Ajax call.
June 13, 2022 at 10:24 PM in reply to: Use Image Upload field to set the Featured Image of the post #36457Long Nguyen
ModeratorHi,
There is a typo mistake when registering the custom field, the ID shouldn't have the space
current:
'id' => $prefix . ' _thumbnail_id',correct:
'id' => $prefix . '_thumbnail_id',Please read more on the documentation https://docs.metabox.io/field-settings/
Long Nguyen
ModeratorHi,
1,2. The field
time(timepicker) uses the JS library to show the time panel, it does not inherit the time from WP settings. If you want to show the timezone, please follow this documentation https://trentrichardson.com/timepicker-gets-time-zone.html3. Thanks for your feedback. I will inform the development team to update the plugin's code.
Long Nguyen
ModeratorHi Yasmine,
1. The helper function needs to pass 3 arguments, if you don't want to use the second, please leave it blank. Just like
$insight = rwmb_get_value( $insight, '', $post_id );2. If you want to include a variable in a value, please wrap the value in the single quote. Just like
$message = 'xxxxxxxfdjgfnk insight: ' . $insight . ' sxxxxx';3. You can share the error log on your site by following this documentation https://wordpress.org/support/article/debugging-in-wordpress/
June 11, 2022 at 3:09 AM in reply to: ✅Use rwmb_show comparing user capability and post field #36446Long Nguyen
ModeratorHi Scott,
In case of including/excluding a field based on the user role, you can try to use the filter
rwmb_normalize_meta_boxorrwmb_normalize_field
https://docs.metabox.io/filters/rwmb-normalize-meta-box/
https://docs.metabox.io/filters/rwmb-normalize-field/June 11, 2022 at 2:58 AM in reply to: Not able to assign product_cat taxonomy to custom post type #36445Long Nguyen
ModeratorHi Orlando,
You can follow this topic to register taxonomy for a post type https://stackoverflow.com/questions/33037985/how-to-add-woocommerce-product-categories-in-custom-post-type
or use the field
taxonomyto set the product category for the post type
https://docs.metabox.io/fields/taxonomy/But please notice that WooCommerce has its own functions to query and manage the taxonomy product_cat. So even if you use a way to do the trick, it might not work with the WooCommerce system.
Long Nguyen
ModeratorHi,
You can try to switch to the standard theme of WordPress (Twenty TwentyTwo) and deactivate all plugins except Meta Box, MB extensions then recheck this issue. See how it works on my end https://monosnap.com/file/As4Qk5fWuYQzLgPI1DMBgOeqUeC7ev
Long Nguyen
ModeratorHi,
The field
taxonomy_advancedsaved the meta value in the meta table like post meta, term meta, user meta. So if you use this field, no matter the location of the taxonomy, it still works as well.Long Nguyen
ModeratorHi,
iframetag is used to embed the HTML document to display the content on a page. I do not see a way to embed a shortcode only with this tag. Or you can try to create a blank page with the frontend form only.Please read more on the documentation https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
Long Nguyen
ModeratorHi,
Can you please share the code that creates the custom fields and columns on your site? Regarding this documentation https://docs.metabox.io/extensions/meta-box-columns/
I guess there is an issue when using the MB columns in your code.Long Nguyen
ModeratorHi,
Thanks for your feedback.
The time format of the field
datetimedoes not look to work properly. I've escalated this issue to the development team to fix it in the next update.Long Nguyen
ModeratorHi,
Please try to use this code to get the post ID when registering the meta box and custom fields
$post_id = null; if ( isset( $_GET['post'] ) ) { $post_id = intval( $_GET['post'] ); } elseif ( isset( $_POST['post_ID'] ) ) { $post_id = intval( $_POST['post_ID'] ); }Refer to this topic https://support.metabox.io/topic/get-post-metabox-data-inside-of-mb-block-default-value/
Long Nguyen
ModeratorHi,
I think the content is empty because you are using a builder plugin that will store the content in a post meta like a field value so the query will return the empty content. You can try to deactivate all plugins except Meta Box, MB extensions then add the content to the post and check the query again.
-
AuthorPosts