Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
If you want to use the helper function
rwmb_get_registry(), please check this example code:$meta_box_registry = rwmb_get_registry( 'meta_box' ); $meta_box = $meta_box_registry->get( 'field-group-id' ); echo "<pre>"; print_r ( $meta_box->meta_box['fields'] ); //print out the list of fields echo "</pre>";Please read more on the documentation https://docs.metabox.io/functions/rwmb-get-registry/
Peter
ModeratorHello,
It's the PHP code to output the field value so you need to add it to the template file on your theme. If you want to output it in a block, please try to use the custom block of Meta Box. Please read more here https://docs.metabox.io/extensions/mb-blocks/
Peter
ModeratorHello,
It's not possible to add the relationship ID as a field ID like that. If you want to display the relationship meta box on the frontend, please add this meta box ID to the frontend shortcode
university_user_relationships_fromoruniversity_user_relationships_toFor example:
[mb_frontend_form id="meta-box-id1,university_user_relationships_to"]Please read more on this topic https://support.metabox.io/topic/mb-relationships-mb-frontend-submission/?swcfpc=1#post-16736
March 15, 2023 at 6:39 PM in reply to: MB custom fields and WP Gridbuilder data issue on filter facet #41024Peter
ModeratorHello,
That is expected behavior. The number field only displays the raw number without formatting. You can format the number on the frontend only, don't use the sanitize callback function to modify the value format.
Or use a custom field type Multimask which is developed by an expert Meta Box user https://github.com/badabingbreda/field-text-multimask
March 15, 2023 at 6:20 PM in reply to: How do I display an image custom field on Author pages? #41023Peter
ModeratorHello,
Our development team is working on this issue. If you are familiar with coding, you can try to apply this commit to your site and see how it goes.
https://github.com/wpmetabox/meta-box-beaver-themer-integrator/commit/9c23e2d816fa8acb511d762aa5567973c0351551Peter
ModeratorHello,
Simply, you can add the field heading/custom_html field as the first field of the second field group "company-opening-hours". Does that make sense?
Peter
ModeratorHello,
The position of the cloneable group is the index of the array and it starts from 0. For example:
post.group_id[0]Or you can use this code to print the group structure
<pre> {{ mb.print_r( post.group_id ) }} </pre>March 14, 2023 at 10:38 PM in reply to: Business Review Custom Post Type & Multi Rating Criteria #41018Peter
ModeratorHello Jean,
1. You can use the action hook
rwmb_frontend_after_processand create a callback function to set the relationship between two objects by using the functionMB_Relationships_API::add().
Please read more on the documentation
https://docs.metabox.io/extensions/mb-frontend-submission/#form-hooks
https://docs.metabox.io/extensions/mb-relationships/#addAnd refer to this topic
https://support.metabox.io/topic/connecting-child-posts-to-a-parent-post-automatically/?swcfpc=1#post-357992. The star rating field should be set to required. Please read more on the documentation https://docs.metabox.io/field-settings/
3. And use the field validation to set the maximum number of characters input. Please read more on the documentation https://docs.metabox.io/validation/
Peter
ModeratorHello,
Can you please share some screenshots of the issue on your site? Please try to deactivate all plugins except Meta Box, MB extensions and switch to a standard theme of WordPress and recheck this issue.
March 14, 2023 at 6:40 PM in reply to: How do I display an image custom field on Author pages? #41008Peter
ModeratorHello,
Currently, the field image_upload does not work with the Beaver Builder, you can try to use the field single_image as I said above. If you want to use the shortcode, please remove the attribute URL.
[rwmb_meta id="m_boatimage" size="full"]Peter
ModeratorHello,
I'm not sure what happens on your site, this setting does not affect by updating to the new version. But glad to see it works. Let me know if you have any questions.
Peter
ModeratorHello,
The PHP error is fixed in this commit https://github.com/wpmetabox/meta-box-beaver-themer-integrator/commit/dfc69ec210c3dbc6ec659f1d84202827b5b78dcb
It will be included in the next update of the plugin MB Beaver Builder Integration. Thanks.
Peter
ModeratorHello,
Currently, this feature is not available. It's not possible to select the post meta with the relationship. I will add this topic to the feature request as a vote. Hopefully, it will be available soon.
Thanks.
March 14, 2023 at 6:08 PM in reply to: GeneratePress Conditional Sidebars in Taxonomy Archives with mb.get_sidebar() #41003Peter
ModeratorHello,
You can use the function
get_sidebar()to get many sidebars on a page as you want, just pass the sidebar name to the function. For example:get_sidebar( 'left-sidebar' ) <content here> get_sidebar( 'right-sidebar' )please contact theme support to get the correct sidebar name. And read more on the documentation https://developer.wordpress.org/reference/functions/get_sidebar/
Peter
ModeratorHello,
You can pass the post (service) ID to the third parameter to display the field settings anywhere on. your site. For example:
rwmb_get_field_settings( 'cars', '', 123 )where 123 is the service ID.
Please read more on the documentation https://docs.metabox.io/functions/rwmb-get-field-settings/#arguments
-
AuthorPosts