Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
To get the field value in the custom table, please follow the documentation to use the helper function
rwmb_meta()https://docs.metabox.io/extensions/mb-custom-table/#getting-field-value
the WordPress functionget_term_meta()only helps you to get the field value from the default tabletermmeta.October 27, 2022 at 12:53 PM in reply to: ✅Radio field ignores 'std' parameter when used in conjunction with other fields #38847Long Nguyen
ModeratorHi,
We've created a note about this case in the documentation, please read more here https://docs.metabox.io/creating-fields-with-code/#why-does-not-my-default-value-work
Long Nguyen
ModeratorHi Ioannis,
Can you please share the code that creates the custom fields and conditional logic on your site? I will help you to check the issue.
You can also follow this documentation to know how to use conditional logic with subfields in a group https://docs.metabox.io/extensions/meta-box-conditional-logic/#using-with-group
Long Nguyen
ModeratorHi,
It is possible to update a field value based on another field value when saving the post. You can use the action hook
rwmb_after_save_fieldto do that. Please read more on the documentation https://docs.metabox.io/actions/rwmb-after-save-field/Long Nguyen
ModeratorHi,
Can you please share the code that creates the custom fields on your site?
October 26, 2022 at 10:11 PM in reply to: How to create a button that updates a custom field using MB Views? #38834Long Nguyen
ModeratorHi John,
It is a complicated case and needs to use more code (JS, PHP) to update a field value on the frontend when clicking on a button. If you are familiar with coding, you can follow this documentation to know how to use AJAX in WordPress to update the field value
https://codex.wordpress.org/AJAX_in_PluginsOctober 26, 2022 at 9:58 PM in reply to: ✅Translate "This field is required." on "mb_user_profile_login" shortcode #38832Long Nguyen
ModeratorHi,
Please refer to this topic to know how to translate the validation text https://support.metabox.io/topic/translation-of-form-messages/
Long Nguyen
ModeratorHi,
It is possible that means the extension MB Rest API does not have an option to fetch data from an external source and update its data to the custom field and it can be done with more custom code. It is also beyond the scope of support of this extension.
If you want to learn more about WP Rest API, please follow the documentation https://developer.wordpress.org/rest-api/
Long Nguyen
ModeratorHi,
You can just create a nested loop to display the video title in a subgroup like
paragraphs, for example:$group_values = rwmb_meta( 'ci_extra_content' ); foreach ( $group_values as $group_value ) { $video_groups = $group_value['ci_video_group']; foreach ( $video_groups as $video_group ) { echo $video_group['ci_video_title']; } }Long Nguyen
ModeratorHi Kirb,
It is similar to this reply https://support.metabox.io/topic/hide-mb-view-if-no-content/#post-37014
to check the query post before displaying a heading.Long Nguyen
ModeratorHi,
Thanks, I'm going to check the issue and get back to you later.
Long Nguyen
ModeratorHi,
Thank you for your feedback. This feature request is already in our development queue. Hopefully, it will be available soon 🙂
October 25, 2022 at 11:24 AM in reply to: ✅Give the user the ability/option to create new post from within the Post Field #38814Long Nguyen
ModeratorHi,
Thank you for your feedback. This feature request is already in our development queue. Hopefully, it will be available soon 🙂
Long Nguyen
ModeratorHi Stefan,
If you want to set the featured image by the custom field, please use the field type
single_image. It saves one image ID to the database like the featured image of WordPress, the data saved of the field typeimage_uploadis different.
Read more on the documentation https://docs.metabox.io/fields/single-image/
https://docs.metabox.io/fields/image-upload/October 25, 2022 at 11:09 AM in reply to: Use the rwmb_{$field_type}_value filter with sub-fields #38812Long Nguyen
ModeratorHi,
The field type of the filter hook
rwmb_{$field_type}_valueor field ID of the filter hookrwmb_{$field_id}_valuein this case is the group field, not the subfield. Then you can access the subfield in the group array. For example:function my_encrypt_function ( $new ) { $new['my_password'] = base64_encode( ... ); return $new; }; add_filter( 'rwmb_group_value', 'my_encrypt_function' ); // or add_filter( 'rwmb_my_group_value', 'my_encrypt_function' ); -
AuthorPosts