Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
Currently, there isn't an option to add a custom field to a menu item. There is a feature request about this one and it is added to our development backlog. It will be supported in future updates.
Thank you.
Peter
ModeratorHello Huy,
This is a WordPress basic question and not related to Meta Box itself. If you want to disable a post type editor, you can use this custom code
add_action( 'init', function () { remove_post_type_support( 'page', 'editor' ); } );Following the documentation https://developer.wordpress.org/reference/functions/remove_post_type_support/
August 16, 2024 at 9:43 PM in reply to: Settings Page changes type from Settings Pages to Post #46161Peter
ModeratorHello,
The issue is related to the PHP setting
max_input_vars, in most cases. Please try to increase this PHP setting value (50-100k) and check the issue again.
Following this article https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/August 15, 2024 at 10:36 PM in reply to: ✅WP All Import Lat Long Coordinates Do Not Show On Map #46155Peter
ModeratorHello,
No, you should add the field value to the map field:
airport_map. Let me know what you see when importing the map field with this value:54.729,-68.435,5Peter
ModeratorHello,
You can use the
postfield which supports showing a list of entries of a CPT. Please follow the documentation https://docs.metabox.io/fields/post/August 14, 2024 at 10:04 PM in reply to: ✅Setting up a post type loaction on the custom fields was not saving. #46151Peter
ModeratorHello,
I already replied to your ticket in the system:
As I can see, the PHP setting max_input_vars is set to 800. Can you please increase it to a higher value, such as 100k then check the issue again?Please check this and follow the suggestion.
August 14, 2024 at 10:02 PM in reply to: ✅WP All Import Lat Long Coordinates Do Not Show On Map #46150Peter
ModeratorHello John,
If you want to import latitude and longitude and show the location on the map, you should import the value to the map field directly with this format:
latitude,longitude,zoom
Please read more about map field value in the documentation https://docs.metabox.io/fields/osm/#dataPeter
ModeratorHello,
If you use the builder, please use the option "Advanced location rules" in the field group settings. Please check this screenshot https://imgur.com/lzk0PTd
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/ -
AuthorPosts