Forum Replies Created
-
AuthorPosts
-
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.
Peter
ModeratorHello Tom,
Can you please export the field group to a JSON file and share it here? I will check the field settings and help you correct the code to output the WYSIWYG subfield value.
Refer to the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--importMarch 26, 2025 at 11:07 PM in reply to: Wysiwyg sanitization - allow nothing but what I define #47927Peter
ModeratorHello Duffl,
Sorry for the late reply. The WYSIWYG field uses
wp_kses_postfunction for sanitization. You can also create your own custom function to sanitize the field value.
Please follow the documentation https://docs.metabox.io/sanitization/
https://github.com/wpmetabox/meta-box/blob/master/inc/sanitizer.php#L85March 26, 2025 at 11:03 PM in reply to: Feature Request: Add Gesture Handling Support for Open Street Maps Field #47925Peter
ModeratorHello Pawel,
Thanks for your feedback.
I will forward this topic to the development team to consider supporting the GestureHandling feature for future updates.
Peter
ModeratorHello Tanja,
I'm afraid that MB Frontend Submission doesn't support duplicating posts in the frontend. You can use a third-party plugin and duplicate the posts in the admin area.
Peter
ModeratorHello,
After importing the field group https://pastebin.com/kTVMJ7GE to my demo site, I can see the issue.
This happens with the total columns in the first tab, the total columns of custom fields should be equal 12 or a multiple of 12.
If I remove the last custom field in the first tab, then it works properly. Please check this screenshot https://imgur.com/dRExMgt
Let me know if it works on your site.
Peter
ModeratorHello Tom,
If you use the WYSIWYG field as a subfield in a group field, the value will be saved without
<p>tag. If you want to render the<p>tag, you should use the PHP codewpautop()to wrap the field value.It is noted in the documentation https://docs.metabox.io/extensions/meta-box-group/#sub-field-values
https://docs.metabox.io/fields/wysiwyg/#template-usageMarch 25, 2025 at 9:41 PM in reply to: ✅How to create a View to show an Open Street Map containing all markers #47913Peter
ModeratorHello Jon,
Please share your site admin account by submitting this contact form https://metabox.io/contact/
and let me know steps that you do you on your site, where I can see that. I will take a look.Peter
ModeratorHello Peter,
Can you please export the field group to a JSON file and share it here? I will help you check the issue with tab and custom fields.
March 24, 2025 at 9:47 PM in reply to: ✅How to create a View to show an Open Street Map containing all markers #47907Peter
ModeratorHello Jon,
There is a section in the tutorial that helps you use Views to show all markers on a map
https://docs.metabox.io/tutorials/display-listings-on-map/#32-method-2-using-mb-viewsif you want to use the PHP code, you can create a shortcode and wrap the PHP code inside the shortcode. Then you can add the shortcode to many places on your site. Please follow the documentation
https://docs.metabox.io/tutorials/display-listings-on-map/#32-method-2-using-mb-viewsPeter
ModeratorHello,
You can still use the filter hook
rwmb_frontend_dashboard_query_argsto adjust the dashboard, here is an example:add_filter( 'rwmb_frontend_dashboard_query_args', function( $args ) { $user_id = get_current_user_id(); if( $user_id == 1 ) { $args['posts_per_page'] = 30; // show 30 posts based on user ID } $args['order'] = 'DESC'; return $args; } ); -
AuthorPosts