Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
Just to clarify, the issue relates to the Custom Post Type and it's not an issue of Meta Box itself. MB CPT helps you to register the post type with UI instead of using the standard WordPress code https://developer.wordpress.org/reference/functions/register_post_type/
Secondly, you can try to change the code
$current_post_id = get_the_ID();to$current_post_id = get_queried_object_id();to get the current post ID.Peter
ModeratorHello,
There is no issue with MariaDB 10.6. If the WordPress site can work with this DB engine, Meta Box can work too. Please read more about WordPress requirements here https://developer.wordpress.org/advanced-administration/before-install/
Peter
ModeratorHello,
Can you please put the code to the file functions.php with a higher priority (like init hook and priority 99) in the theme folder and check the issue again? It is possible that the code is executed before Meta Box functions run so there is an error
Class 'MB_Relationships_API' not found.Peter
ModeratorHello,
Please access the database and try to create a test table manually and see how it goes.
If it is created, then try to deactivate all plugins except Meta Box, MB extensions and switch to the default theme of WordPress and check the issue again
If it is not created, then check the permission of the user if you have full privilege to create a table in the database.May 14, 2023 at 9:04 PM in reply to: Post Field: 'Set as Parent' Does not save field value in Custom DB Table #41818Peter
ModeratorHello,
I've created a feature request and our development team will consider supporting this feature in future updates.
Regarding the saving field value manually, you can use the function
rwmb_request()->set_post_data( $_POST );with the hookrwmb_before_save_postor functionupdate_post_meta()with the hookrwmb_after_save_post.
Refer to the documentation
https://docs.metabox.io/actions/rwmb-before-save-post/
https://docs.metabox.io/actions/rwmb-after-save-post/Peter
ModeratorHello Yasmine,
I've tried to export the field group on your staging site and import it on my demo site. After adding the field value and using the code, I see the subfield values display on the frontend correctly.
You can try to create another field group and check this issue again.May 13, 2023 at 9:53 AM in reply to: ✅"Group Title" shows the text "{subfield_id}" instead of the value #41815Peter
ModeratorHello,
Can you please share some screenshots of the field group? Or export it to a JSON file and share it here, I will import the field group to my demo site and check the issue.
May 12, 2023 at 8:43 PM in reply to: ✅Beaver Builder Launch Button Broken when Meta Box fields added to post type #41812Peter
ModeratorHello,
Sorry, a mistake. It's in the Meta Box plugin, please wait for the next update of the plugin or you can try to apply the fix on your end.
May 12, 2023 at 8:42 PM in reply to: Post Field: 'Set as Parent' Does not save field value in Custom DB Table #41811Peter
ModeratorHello,
If you use the option "Set as Parent", the field does not save the value to the postmeta table or custom table. It will set the post_parent in the table wp_posts. Saving a meta value, in this case, is not necessary.
If you want to save a meta value to the DB, you can take a look at the actionrwmb_after_save_postto set a post meta after saving the post.Please read more on the documentation
https://docs.metabox.io/actions/rwmb-after-save-post/
https://docs.metabox.io/extensions/mb-custom-table/#apiPeter
ModeratorHello,
If you want to stripe the slashed from the field value after adding in the admin area, please create a custom sanitize callback. The default sanitize function of WordPress does not support striping the slashes, please follow the documentation https://developer.wordpress.org/reference/functions/sanitize_text_field/
https://docs.metabox.io/sanitization/#custom-sanitize-callbackIf the value is inserted into the DB from another source like Rest API, you can stripe the slashes from the value before inserting it into the DB.
I've tested with a custom table and see the same results.
Peter
ModeratorFix the issue by enabling the option "Save field value" in the field settings > Advanced tab, screenshot https://monosnap.com/file/vYTozfp7hXYF5EIii9s3fSBgrOqovD
May 11, 2023 at 9:08 PM in reply to: ✅"Group Title" shows the text "{subfield_id}" instead of the value #41805Peter
ModeratorHello,
Do you enable the Collapsible option for the group field? It is required to use the dynamic group title, please follow this documentation https://docs.metabox.io/extensions/meta-box-group/#collapsible-groups
Peter
ModeratorHello,
There is no option to group each cloneable field by category.
If you want to set the dynamic title for the group based on the field value, please follow the documentation https://docs.metabox.io/extensions/meta-box-group/#collapsible-groupsPeter
ModeratorHello Scott,
Thanks for your feedback.
I see in the frontend dashboard table, the status text is capitalized as the label. In the favorite dashboard table, you can simply use this CSS code.
.mbfp-posts tbody tr td:nth-child(3) { text-transform: capitalize; }Peter
ModeratorHello,
Thank you for your feedback.
There is an issue with the WYSIWYG field and I've escalated it to the development team to fix the issue. Meanwhile, you can switch to the Text mode of the field and use the quick tags to insert
<li>and other tags with a basic knowledge of HTML. -
AuthorPosts