Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello Chris,
It is possible to run a PHP function in the view template, please follow the documentation https://docs.metabox.io/extensions/mb-views/#running-php-functions
if Polylang supports a PHP function that check the language, you can use that in the view template.
August 12, 2024 at 11:23 PM in reply to: ✅load the frontend submission form in the wp admin backend #46141Peter
ModeratorHello Nick,
It isn't possible to render the frontend form shortcode in the admin area. You can run the function
do_shortcodein the admin area but the frontend form shortcode doesn't work, it works in the frontend only.August 12, 2024 at 11:01 PM in reply to: Lock SLUG From Changing when Updating Singular Name of CPT or CT #46140Peter
ModeratorHello,
It can be a feature request. I will share your feedback with the development team so they can consider supporting this option in future updates.
Thank you.
Peter
ModeratorHello,
It is the limitation of WordPress for the slug. You can read more in the WordPress documentation
https://developer.wordpress.org/reference/functions/register_taxonomy/max characters for the taxonomy slug is 32, I will inform the development team to update the message to show the correct number. If you create more than 32 chars, the taxonomy might not appear in the admin menu.
Peter
ModeratorHello Mats,
If you use the map field, you can follow the documentation below to get the map data: latitude, longitude
https://docs.metabox.io/fields/map/#getting-field-value$location = rwmb_get_value( 'map_field_id', '', get_the_ID() ); $latitude = $location['latitude']; $longitude = $location['longitude'];Peter
ModeratorHello Adam,
You can use the helper function
rwmb_meta()to get the full image info. Please follow the documentation
https://docs.metabox.io/fields/single-image/#template-usage$my_meta_value5 = rwmb_meta( 'single_image_id', ['size' => 'thumbnail'], get_the_ID() ); echo $my_meta_value5['url'];Peter
ModeratorHello Joe,
It isn't possible to add the function
cmb_fields_by_user_roleto the Meta Box registration like that. If you want to show the field group for a specific user, please use the extension MB Include/Exclude. Following the documentation https://docs.metabox.io/extensions/meta-box-include-exclude/Peter
ModeratorHello,
I see there are some JS errors in the Console tab of the browser Inspect tool, please try to resolve them and check the issue again. See this screenshot https://imgur.com/aut8YAI
August 10, 2024 at 4:01 PM in reply to: How to show relationships in same order as set in backend? #46128Peter
ModeratorPlease remove the order parameter from both args1 and args2 then check the issue again. If it still doesn't work, you can share your admin account by submitting this contact form https://metabox.io/contact/
I will take a look.August 8, 2024 at 10:37 PM in reply to: ✅Setting up a post type loaction on the custom fields was not saving. #46121Peter
ModeratorPlease share your site admin account by submitting this contact form https://metabox.io/contact/
I will take a look.Peter
ModeratorHello,
That is expected when using the PHP code to validate, the page will be reloaded and input value will be lost. If you want to validate a field without reloading the page, please use the JS validate https://docs.metabox.io/validation/
Peter
ModeratorHello Eddy,
If you have the student ID, you can use the code below to get the student field (user meta).
{% set student_document = mb.rwmb_meta( 'document_group', { object_type: 'user' }, user.student_id ) %} {% for clone in student_document %} ... {% endfor %}please update the field
document_groupID if it isn't correct. Following the documentation
https://docs.metabox.io/extensions/mb-user-meta/#getting-field-value
and the previous topic https://support.metabox.io/topic/how-to-get-field-value-in-the-settings-page/Peter
ModeratorHello Yasmine,
I tried to reproduce the issue on my end but couldn't see it. Please try to create a new field group with that field and deactivate all plugins except Meta Box, MB extension plugins, switch to a standard theme of WordPress and check the issue again.
August 8, 2024 at 9:25 PM in reply to: How to show relationships in same order as set in backend? #46116Peter
ModeratorHello,
You are using the parameter
orderby:'none'so the relation posts will be displayed with no order. Please remove it and check the issue again.August 7, 2024 at 11:17 PM in reply to: ✅Setting up a post type loaction on the custom fields was not saving. #46110Peter
ModeratorHello Steve,
Do you try to increase the PHP setting
max_input_varsas in other topics? If you activate only Meta Box and MB extension plugins, does this happen again? -
AuthorPosts