Forum Replies Created
-
AuthorPosts
-
January 7, 2022 at 10:38 AM in reply to: ✅Is it possible to have a metabox custom field linked to an existing field #33056
Long Nguyen
ModeratorHi Dom,
Meta Box does not support updating WooCommerce product data from custom field values like that. It is possible to do but you will need a lot of custom code to implement this case.
If you want to create the custom code with an extra fee, please create a service request here https://metabox.io/contact/. I will forward it to our developer team to estimate the job and get back to you with the quote.
Long Nguyen
ModeratorHi Steffen,
A little bit tricky, you can add the redirect function when validating with the hook
rwmb_frontend_validate. Like thisadd_filter( 'rwmb_frontend_validate', function( $validate, $config ) { if ( empty( $_POST['field_id'] ) ) { wp_redirect( 'https://facebook.com' ); die; } return $validate; }, 10, 2 );Long Nguyen
ModeratorHi Dan,
You can just create 2 fields with the same IDs in ACF. The field value will show corresponding in the post.
January 6, 2022 at 9:47 PM in reply to: The contents of the text field disappear after the update of the post (Polylang) #33046Long Nguyen
ModeratorIn case of using Oxygen Builder, please reach to them if you have any issues with installation, configuration, compatibility, or usage.
Refer to our support policy https://support.metabox.io/topic/support-policy/Long Nguyen
ModeratorHi,
Thanks for reaching out.
It is not possible to use Meta Box to create WooCommerce custom fields in the product data box. WooCommerce uses its own functions to create and update data in the box.
You can create the custom fields for product post type and fill value, but you need to use the code to output the value on the product page. Refer to this article https://metabox.io/add-custom-fields-for-woocommerce/
Long Nguyen
ModeratorHi,
The frontend form does not support showing the progress bar like that. You can use two hooks
rwmb_frontend_before_processandrwmb_frontend_after_processto add some JS and CSS code to show something before and after the form is submitted.Refer to the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#form-actions
Long Nguyen
ModeratorHi,
The group is used for storing data (sub-fields value) not for querying by sub-fields (sort or filter) value because the value of the group saved in the database is a serialized array.
See more in https://metabox.io/create-group-of-custom-fields-with-meta-box-group/#how-does-the-meta-box-group-save-data.You should use the top field for sorting or filtering (FacetWP).
January 6, 2022 at 2:37 PM in reply to: The contents of the text field disappear after the update of the post (Polylang) #33034Long Nguyen
ModeratorHi Peter,
Can you please share the code that creates the custom field? If Polylang can translate other custom fields, it should work with the text field. You can also contact Polylang to ask for help with this issue.
Regarding the
textareafield, you can add the newline character\nor HTML tag<br>to break lines on the frontend.Long Nguyen
ModeratorHi,
The hidden field is ignored to validate, it is updated from this commit https://github.com/wpmetabox/meta-box/pull/1361
You can create your own JS code to check the empty field value, refer to this topic https://stackoverflow.com/questions/3937513/javascript-validation-for-empty-input-field
Long Nguyen
ModeratorHi,
You can use the filter hook
rwmb_get_valueto modify the value returned by this function. Please follow the documentation
https://docs.metabox.io/filters/#rwmb_get_valueLong Nguyen
ModeratorHi,
You can try to use the field type
fileand use the settingunique_filename_callbackto modify the file name before saving it to the database. Please read more on the documentation https://docs.metabox.io/fields/file/Long Nguyen
ModeratorHi Alperen,
It's the field group ID if you use the Builder, please follow this documentation to get more details https://docs.metabox.io/creating-meta-boxes/
January 5, 2022 at 9:16 PM in reply to: ✅Multiple custom post types or one CPT + an options page? #33018Long Nguyen
ModeratorHi,
I think point 1 is a good way to create relationships between
event <-> course <-> scholar. But there is no option to bulk select relationships between posts, you have to add it manually.Or you can use the code to create the relationship by coding. Refer to this documentation https://docs.metabox.io/extensions/mb-relationships/#creating-connections-programmatically
Long Nguyen
ModeratorHi,
The field
wysiwyguse the WP function wp_kses_post() to sanitize the input value. You can create your own function callback to sanitize the user input. Please read more on the documentation https://docs.metabox.io/sanitization/January 5, 2022 at 2:10 PM in reply to: metaboxes are not shown in preview changes button click #33008Long Nguyen
ModeratorHi,
I think the autosave option might not relate to this case. And it is not working for now, unfortunately.
-
AuthorPosts