Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
You should click on the sort button of the field number, see my screen record https://share.getcloudapp.com/4guOLR9q.
Long Nguyen
ModeratorHi,
You can add the attribute
post_typeto the shortcode to define the post type to save data.[mb_frontend_form id="cliente" post_fields="title,content" post_type="budget"]Read more in the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#shortcode-attributes.
Long Nguyen
ModeratorHi,
I've tested the shortcode
mb_user_profile_infoagain on my local site but not see any issue. Please deactivate all other plugins, leave Meta Box, Meta Box, and switch to the default theme of WordPress (Twenty TwentyOne) then check the issue again.If it still does not work please do the step Private Website Info https://support.metabox.io/topic/how-to-create-a-new-topic/.
Long Nguyen
ModeratorHi,
You can use this pattern to validate 3 numbers and a hyphen between
[0-9]{3}-[0-9]{3}-[0-9]{3}. See more on this guide: https://www.html5pattern.com/Postal_Codes.Long Nguyen
ModeratorHi guys,
I've tried to create a cloneable, sort clone group and a sub-field WYSIWYG but do not see any issue. Screen record https://share.getcloudapp.com/NQuKAONx.
Could you please share a screen record of the issue? Follow the step Debugging Information, and share the information in the step Private Website Info https://support.metabox.io/topic/how-to-create-a-new-topic/.
Long Nguyen
ModeratorHi,
The developer team is working to create a new version of the MB Builder. You can try to use the Online Generator tool which has been implemented some React JS code https://metabox.io/online-generator/.
Long Nguyen
ModeratorHi,
In the Block Editor (Gutenberg). You can click on Options (3 dots) > Preferences > Check the custom meta boxes to show it up. Screenshot: https://share.getcloudapp.com/qGulBYxQ.
In the Classic Editor, click on Screen Options > check the custom meta boxes. Screenshot: https://share.getcloudapp.com/RBu9kk5R.
Long Nguyen
ModeratorHi Brain916,
Please follow this article to know how to create a new
WP_Queryinstance to get posts by custom field (meta key) https://metabox.io/get-posts-by-custom-fields-in-wordpress/.Refer to this documentation of WordPress https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters.
Long Nguyen
ModeratorHi,
Thanks for your feedback.
If you search for some cases to show the field value on this forum, such as https://support.metabox.io/topic/display-multiple-media-files-connected-to-a-user/
combine with the documentation of MB Views https://docs.metabox.io/extensions/mb-views/#insert-fields and field https://docs.metabox.io/fields/image/#template-usage. You will see that it's so easy to show the field value.
We will also try to improve the documentation to help new users understand more to use the View.
Long Nguyen
ModeratorHi,
The setting
multipleof the fieldimageis set totrueby default so the helper function will return an array of images. You need to loop through the value return, example:{% set images = mb.rwmb_meta( 'event_speaker_image', '', event.ID) %} {% for image in images %} <img src="{{image['full_url']}}" /> {% endfor %}Get more details in the documentation https://docs.metabox.io/fields/image/#template-usage.
Regarding the PHP code with Twig, it would be better if you create your own function by PHP code then use it in the View via the proxy
mb..Long Nguyen
ModeratorHi,
The shortcode does not support to add the custom class. You can try to wrap the shortcode in a
<div>tag. Just like:<div class="my-custom-class"> [rwmb_meta id="field_id" object_id="15"] </div>Or use the Builder to add the custom class to the field https://share.getcloudapp.com/X6u0nXzj.
Long Nguyen
ModeratorHi Vikas,
Maybe the cache still loads the first time. Please try to clear the cache and check the field value again. Here is the screen record I've tried to use your code on my local site https://share.getcloudapp.com/NQuK5pZq.
Long Nguyen
ModeratorHi,
To get the field value, you just need to pass the field ID to the first argument of the helper function.
mb.rwmb_meta( 'event_speaker', '', event.ID )Get more details in the documentation https://docs.metabox.io/rwmb-meta/#arguments
Long Nguyen
ModeratorHi Vikas,
Please share the code that creates the custom field group, and sub-fields. I will check it on my end.
Long Nguyen
ModeratorHi,
Please follow the Debugging Information, if it does not show anything, please do the step Private Website Info https://support.metabox.io/topic/how-to-create-a-new-topic/.
-
AuthorPosts