Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello Nick,
You can use the public API to add or update the field value to a custom table. Please follow the documentation
https://docs.metabox.io/extensions/mb-custom-table/#add
https://docs.metabox.io/extensions/mb-custom-table/#updateNote: the feature "Clone as multiple" doesn't work with the custom table.
Peter
ModeratorHello Darwin,
If you have a question about the account and license key, please contact us here https://metabox.io/contact/
we will get in touch with you shortly.Peter
ModeratorHello Jayron,
In order to correct your code, I need to check the field settings in the field group. Please export the field group to a JSON file and share it here, following the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import
Peter
ModeratorHello,
With the builder, you can easily save the field value to a custom table and the builder creates the table automatically. Please follow the documentation https://docs.metabox.io/extensions/mb-custom-table/#getting-started
Then you can check the custom table and field value in the database if it is created and stored field value correctly.
Peter
ModeratorHello,
I think you can update a field value by following a previous topic https://support.metabox.io/topic/rwmb_frontend_validate-and-update-_post-value/
and the function update_post_meta().Peter
ModeratorHello,
I cannot reproduce the issue on my end. Can you please export the field group to a JSON file and share it here? And let me know how to reproduce it.
March 15, 2024 at 10:22 PM in reply to: Dynamically populating options values for select2 doesn't save to database #44878Peter
ModeratorAlso, please try to disable the sanitization and check the save value process again. Following the documentation https://docs.metabox.io/sanitization/#bypass-the-sanitization
Peter
ModeratorHello,
Please click on this link https://metabox.io/contact/
you will see a contact form. Add your site credentials (admin account and FTP) and details of the upgrade license. We will help you resolve issues.March 15, 2024 at 9:43 PM in reply to: Dynamically populating options values for select2 doesn't save to database #44876Peter
ModeratorHello,
You can try to use the filter hook
rwmb_after_save_fieldto update the field value from the $_POST variable. However, I'm not sure if it can work with your custom JS code to show the saved/current value after saving the post.Following the documentation https://docs.metabox.io/actions/rwmb-after-save-field/
Peter
ModeratorHello,
The type of user_pass column in the table
wp_usersis varchar 255 so I think WordPress doesn't limit the password to 20 characters. I also don't see that issue on my demo site or on your site, screenshot https://imgur.com/4KC3R4XMarch 15, 2024 at 8:58 PM in reply to: Display the same post multiple times based on custom fields group #44873Peter
ModeratorHello Eugene,
I think you can use the WP Query to query posts with the custom field parameter, please follow the documentation https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters
Note: It's difficult to query posts based on the subfield value in a group field. The purpose of the group field is to store data, not for query. Following this article https://metabox.io/create-group-of-custom-fields-with-meta-box-group/#how-does-the-meta-box-group-save-data
March 15, 2024 at 8:50 PM in reply to: How to plan or create the custom post type structure for my need #44872Peter
ModeratorHello Raju,
The first thing, this site https://meritnotes.com/ is not built with WordPress. If you want to have the same structure, you need to understand the post type, taxonomy and custom field of WordPress.
The plugin MB Custom Post Type helps you to create the post types and taxonomies with UI instead of using the code register_post_type(), register_taxonomy().
In general, it is possible to have the same structure with WordPress and Meta Box. However, you will need to use a lot of custom code to show that structure. I recommend using a built-in plugin like Learn Press or LearnDash to use their features to have a learning system like that.
March 15, 2024 at 8:27 PM in reply to: ✅Get Fields from Records in a Reciprocal Relationship of a Related Post #44869Peter
ModeratorHello,
You are using the custom query, so you need to add the parameter manually. The fields in the Insert fields area only work with the main query. Please read more about the custom query and main query in the documentation
https://docs.metabox.io/extensions/mb-views/#insert-fields
https://docs.metabox.io/extensions/mb-views/#main-query
https://docs.metabox.io/extensions/mb-views/#custom-queryPeter
ModeratorHello Michal,
You can try to follow this tutorial to increase the PHP setting
max_input_varsto fix the issue
https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/Let me know how it goes.
March 14, 2024 at 9:55 PM in reply to: ✅mbct_before_update - want to identify if a field has changed #44858Peter
ModeratorHello,
I've escalated this case to the development team. We will consider using cache when getting field value from the custom table with the function rwmb_meta() only and the rest will be queried directly from database.
Thank you.
-
AuthorPosts