Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
Please upload your site to an online hosting and share the admin account by submitting this contact form https://metabox.io/contact/
I will take a look.
Peter
ModeratorHello,
You can use the bypass sanitization and add the
<br>tag to the textfieldagain. Following the documentation https://docs.metabox.io/sanitization/#bypass-the-sanitizationPeter
ModeratorHello,
If you use the Bricks builder, you also need to add the ID to the form option, like the field group ID.
meta-box-id-1,posts-to-page_relationships_fromMarch 31, 2025 at 8:35 PM in reply to: How to bind to the uploader to pass custom parameters to FormData #47966Peter
ModeratorHello,
Can you please let me know the purpose or a real case to pass the custom param to the form data, specifically the file media.js?
If you want to upload the file to a custom folder, you can use the field type
file. Please follow the documentation https://docs.metabox.io/fields/file/Peter
ModeratorHello,
I import the field group to my demo site, edit a category, add a value to the field and save. It is saved properly to the database without any issues.
Can you please deactivate all other plugins (including Breakdance) and switch to a WordPress theme then check the issue again?Peter
ModeratorHello Tanja,
Each relationship box has the ID
{$relationship_id}_relationships_fromand{$relationship_id}_relationships_to. You can include these IDs in the form shortcode to show it on the front end.For example:
[mb_frontend_form id="meta-box-id-1,posts-to-page_relationships_from" post_fields="title,content"]Following the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#how-to-add-relationships-to-the-frontend-submission-form
Peter
ModeratorHello Topher,
The compatibility plugin between Meta Box and WP All Import (WPAI) is developed by WPAI team. Please use their plugin to get full features when importing data with Meta Box.
https://www.wpallimport.com/import-meta-box-fields/Peter
ModeratorHello,
Can you please export the field group to a JSON file and share it with me? I will import the field group to my demo site, check the field settings and see how it works on my site.
Following the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import
Peter
ModeratorHello,
All the post type settings are stored in the post content, there is nothing to do with the custom field of the post type
mb-post-type. Please check this screenshot https://imgur.com/ZZ7nHx7you can update the post type settings by updating the post content of the post type
mb-post-type.If you want to get and update the post content of a post type, you have to include
editorin thesupportsarray for the content field to be included in the REST API response.Here is an example
function enable_rest_api_for_metabox_post_type($args, $post_type) { if ($post_type === 'mb-post-type') { $args['show_in_rest'] = true; $args['supports'] = ['title', 'editor']; } return $args; }however, when you edit the post type in the admin area, the UI will be broken because
editoris enabled by customization.Peter
ModeratorHello,
Yes, it is possible. WordPress supports a filter hook
register_post_type_argsso you can modify a post type setting. Please follow the documentation
https://developer.wordpress.org/reference/hooks/register_post_type_args/Peter
ModeratorHello Oliver,
Each view template is a post, stored in the table wp_posts. If you want to access the view post via Rest URL, you can modify the post type
mb-views, and enable Rest API for this post type'show_in_rest' => trueThen you can access the view post with the URL format:
https://site.com/wp-json/wp/v2/mb-views/post-id-123Refer to this topic https://wordpress.stackexchange.com/questions/342540/is-there-possible-way-to-modify-custom-post-type
and documentation https://developer.wordpress.org/reference/hooks/register_post_type_args/Peter
ModeratorHello Alex,
The issue in this topic has been resolved. However, your issue with the custom block and select_advanced field isn't fixed. We are still researching this issue and working on it. The fix for that issue will be included in future updates.
In the meantime, you can follow the workaround from our user in this topic to fix the issue
https://support.metabox.io/topic/bug-with-select_advanced-fields/#post-47857Thank you.
March 27, 2025 at 10:39 PM in reply to: ✅Need to have colon : in a custom select field - Escaping characters? #47940Peter
ModeratorHello,
If you use the builder to create the custom field, you need to use the format
value: Labelfor the select option. For the label, you can add any characters there. For example:red1: Red: 1 red2: Red: 2 red3: Red: 3Please check this screenshot https://imgur.com/eVoleqB
Peter
ModeratorHello,
I import the field group to my demo site and see that the WYSIWYG subfield is not a cloneable field. So the correct code to output this field value is
$groups = rwmb_meta( 'konc_sku_pol' ); foreach ( $groups as $group ) { // Field konc_sku_pol_txt: $wysiwyf_field = $group[ 'konc_sku_pol_txt' ] ?? ''; echo do_shortcode( wpautop( $wysiwyf_field ) ); }Let me know if it helps.
Peter
ModeratorYes, that's it. I've also escalated this issue to the development team to check and fix it in future updates.
Thank you.
-
AuthorPosts