Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Returning array so you need to use a loop to get the value of each element or point to a specific element to get its value.
$user_academic_title = rwmb_get_value( 'academic_title', ['object_type' => 'user'], $user); return var_dump( $user_academic_title[0] );Read more on the documentation https://docs.metabox.io/fields/select-advanced/
August 2, 2022 at 11:00 PM in reply to: Remove Everything After the Question Mark in URL After Saving #37319Long Nguyen
ModeratorHi,
You can set the shortcode attribute
ajax="true"to not add the query args to the URL after submitting the form (not editing from the frontend dashboard). Or use the form hook to redirect to the current page. Read more on the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#general-hooksLong Nguyen
ModeratorHi,
Can you please share the code that creates the user meta fields? And some screenshots of the value input/output. I will help you to check the issue.
Long Nguyen
ModeratorHi,
Please follow this documentation to know how to use a form hook to send an email notification to your address after a user submits the form https://docs.metabox.io/extensions/mb-frontend-submission/#form-hooks
Long Nguyen
ModeratorHi,
You can follow this documentation to know how to add a callback function to update a field value to an MB hook
https://docs.metabox.io/actions/rwmb-after-save-field/and refer to this topic to add a number of days to date https://stackoverflow.com/questions/2332681/add-number-of-days-to-a-date
August 2, 2022 at 10:21 AM in reply to: ℹ️How to target a MeTABOX custom field attached to a Woo product #37309Long Nguyen
ModeratorHi,
Both block of code should work in your case, but I prefer this code.
We should check the post type first, if it does not match then do nothing. No need to get the field value for other post types.Long Nguyen
ModeratorHi,
There is no exact answer for how many columns should be used. It depends on what data you store, how powerful your hosting/server is, and how much time you will spend maintaining the table. I see there are some benefits:
- Time to maintain
- Time to query
- Delete one table if you do not want to use a meta box instead of deleting each column relate to each field of a meta box in a table.Refer to this topic https://www.quora.com/How-many-columns-is-the-maximum-I-should-have-in-a-mySQL-Table
August 1, 2022 at 12:51 PM in reply to: ✅MB Builder Editor Not Loading "TypeError: t.map is not a function" #37295Long Nguyen
ModeratorHi,
Can you please export the field group to the JSON file and share it here? I will help you to check the issue. Refer to this solution https://docs.metabox.io/extensions/meta-box-builder/#export--import
Long Nguyen
ModeratorHi Will,
It is a ready-to-use plugin (solution), can run independently without any MB extension, and is not a part of the plugin MB AIO. MB AIO works like a container, it contains all MB extensions, not the solutions.
https://metabox.io/product-category/solutions/Long Nguyen
ModeratorHi,
I don't know a way to get the post (product) object from the early hook like
initbecause the filterrwmb_meta_boxesis run at theinithook with priority 20. If you want to process data after submitting the form, please use the form hook. Read more on the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#hooks-1Long Nguyen
ModeratorHi Cynthia,
Currently, there is no option to change the attribute
tabindexvalue to skip using tab button for the tooltip. You can use this JS code to do thatjQuery(document).ready(function($) { $(".mb-tooltip").attr("tabindex", -1); });with this plugin https://wordpress.org/plugins/insert-headers-and-footers/
Long Nguyen
ModeratorHi Edward,
Please follow this documentation to resolve the issue https://docs.metabox.io/updates/#why-cant-i-update-even-with-a-valid-license-key
and please re-type the license key to make sure there is no redundant space at the end of the license key (double click).July 30, 2022 at 2:59 PM in reply to: ℹ️How to target a MeTABOX custom field attached to a Woo product #37283Long Nguyen
ModeratorHi,
You can use the helper function to get the field value associated with the post ID in the callback function, or just use the WordPress function
get_post_meta(). For example:rwmb_meta( 'display_entree_name', '', $post_id )Read more on the documentation https://docs.metabox.io/functions/rwmb-meta/
Long Nguyen
ModeratorHi Kyle,
Currently, there is no way to update the field settings to a saved block. I will inform the development team to consider supporting this case in future updates.
Long Nguyen
ModeratorHi Jan,
Thanks for your feedback.
I've escalated this issue to the development team to fix it in the next update.
-
AuthorPosts