Forum Replies Created
-
AuthorPosts
-
July 30, 2024 at 9:29 PM in reply to: Setting Field's Default Value Based on Another Field's Input #46052
Peter
ModeratorHello Johnson,
There isn't an option to copy a field value to another field on live. You need to create custom Javascript to do that.
If you want to update another field value after saving the post, you can use the action hook "rwmb_after_save_field". Please follow the documentation https://docs.metabox.io/actions/rwmb-after-save-field/Peter
ModeratorHello Yasmine,
According to some recent topics, I understand you want to create a multi-step frontend form. But currently, this feature is not supported. If you are struggling with JS code on your site, we offer a customization service with an extra fee. Please contact us here for more details https://metabox.io/contact/
Regarding the tab field, it only works as a top field, not a subfield in a group. So I recommend simplifying your frontend form and using the tab field with other fields.
July 29, 2024 at 11:04 PM in reply to: ✅Changelog for Metabox AIO hasn't been updated since 1.27.0 #46045Peter
ModeratorHello Tom,
Can you please clear the cache and recheck the changelog entries? They are displayed on the changelog page as well, see this screenshot https://imgur.com/3Ii3agH
Peter
ModeratorHello,
Meta Box doesn't support a function to get the parent of the current post.
You can use another WordPress function to get the post parent https://developer.wordpress.org/reference/functions/get_post_parent/
or simply get the current post object and access the attribute
post_parent
https://developer.wordpress.org/reference/classes/wp_post/Peter
ModeratorHello Mathew,
If you don't want to show or get the raw secret keys, you can use the field password to hash the value and save the hash to the database. It works like a user password or the consumer_key Rest API key of WooCommerce.
Once it is encrypted, it won't be decrypted. You can only use the WP function to check the key.
https://docs.metabox.io/fields/password/Otherwise, you should use a simple text field to save the key.
Peter
ModeratorHello,
What steps throw the error on your site? Is this the last step?
Updating metabox fields and relations through WordPress API.If yes, can you share some screenshots or code that you use to update the meta box fields? And let me know the post type which has the custom field that you are trying to update.
Peter
ModeratorHello Travis,
WordPress itself doesn't support adding a shortcode to the menu. You can try to use a third-party plugin to insert the shortcode to the menu item https://wordpress.org/plugins/shortcode-in-menus/
July 28, 2024 at 3:15 PM in reply to: White screen of death on some pages with views after updating #46032Peter
ModeratorYes, please separate the view template or use another WordPress function to get the post term
https://developer.wordpress.org/reference/functions/wp_get_post_terms/July 27, 2024 at 7:37 AM in reply to: ✅post-field: relative path, text-field: html not working #46026Peter
ModeratorHello,
1. The post field saves the post ID to the database. You can get the raw field value (post ID), and get a relative path based on the ID. Following the WordPress documentation https://developer.wordpress.org/reference/functions/wp_make_link_relative/
2. Please bypass the sanitization to add HTML tags to the text field
https://docs.metabox.io/sanitization/#bypass-the-sanitizationJuly 27, 2024 at 7:27 AM in reply to: ✅image_advanced data not stored as multiple rows in database anymore #46025Peter
ModeratorHello,
The field image_advanced still saves multiple images in multiple rows to the database.
- If you enable the option cloneable and "clone as multiple", the field value will save an array of images per clone in the database.
- If you disable the option "clone as multiple", all images will be saved in one row.I hope that makes sense.
Peter
ModeratorHello Andrew,
Please try to add the specific post ID to the helper function
rwmb_meta()and check if it works:<?php $files = rwmb_meta( 'fees_file_upload', '', 123 ); ?>where 123 is the post ID. Following the documentation https://docs.metabox.io/functions/rwmb-meta/
Peter
ModeratorHello,
I see that is expected. In the field settings, the basic style will be displayed, as other fields like text, textarea ... When the value is output in the block editor area, the custom style is applied and show the custom font.
Peter
ModeratorHello,
Currently, it isn't possible to get the post ID of the post in the Query Loop block of WordPress. It is a bug of WordPress itself, you can get more information in this topic https://wordpress.org/support/topic/query-loop-block-get-display-each-post-id/
Or you can create a loop with View template and add the shortcode to the page content. Please follow this topic https://support.metabox.io/topic/reusable-template-parts/
Peter
ModeratorHello,
If the user role
Assistantonly has the capabilityreadenabled, how does the user create or edit a post? Do you submit the post in the frontend with the Frontend Submission form?
I test to add a custom roleAssistanton my demo site and can still see the post type in the relationship box in the frontend.Peter
ModeratorHello Yumiko,
Can you share some screenshots of the issue? I understand that the font in the WYSIWYG field value is different from the value that is rendered in the block editor area.
-
AuthorPosts