Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
This field does not support a feature like that. But I think you can use the setting
select_all_noneto toggle all/none checkboxes. Please read more on the documentation https://docs.metabox.io/fields/checkbox-list/#settingsLong Nguyen
ModeratorHi,
You can try to follow the Debugging Information step to troubleshoot the issue https://support.metabox.io/topic/how-to-create-a-new-topic/
If it still does not work, I think you can use the Google Map as a top field instead of a subfield in a group.
Long Nguyen
ModeratorHi,
You are using the main query in Insert Field tab > Query > Main query: Loop
https://docs.metabox.io/extensions/mb-views/#main-query{% for post in query.posts %} ... {% endfor %}that means this query only applies to the type: Archive to show the list posts of the archive post type page. And it does not work for a single post or a single page.
If you want to show a list of
animalposts on a single page, you can use the custom query. Please read more here https://docs.metabox.io/extensions/mb-views/#custom-queryLong Nguyen
ModeratorHi friends,
This issue has been fixed, please use this command to clear cache and run composer again.
rm -rf vendor && composer clear-cache && composer installLet me know if it works.
Long Nguyen
ModeratorHi,
You can insert the View shortcode to the PHP code as well.
echo do_shortcode('[mbv name="my-shortcode"]');Remember to select the View type: Shortcode, screenshot https://imgur.com/6LXzgym
Long Nguyen
ModeratorHi,
To show the user meta image, you can use this code
$image = rwmb_meta( 'image', ['object_type' => 'user'], $user->ID ); //in your case user ID should be $user->ID echo '<img src='. $image['url'] .' />';to show the term name (country), you can use this code
$country = rwmb_meta( 'tax_country_oggm418p', ['object_type' => 'user'], $user->ID ); echo $country->name;Please get more details on two fields document
https://docs.metabox.io/fields/single-image/#template-usage
https://docs.metabox.io/fields/taxonomy/#template-usageLong Nguyen
ModeratorHi,
Please refer to this topic https://support.metabox.io/topic/select-choices-callback-cache/
You can use the code to register the field to get the updated value of the callback function on loading or update the field group in the Builder manually.
Long Nguyen
ModeratorHi,
Thank you for your reporting.
I will inform the development team to check this issue and get back to you later.
Long Nguyen
ModeratorHi,
It is not possible to call the class and static PHP functions in the View via the proxy so you can wrap the code in a function, add it to the file functions.php then call this function in the View via proxy
mb.For example:
function my_map() { $group_values = rwmb_meta( 'project_address' ); $args = array( 'api_key' => 'AIzaSyCxo8eTReDw2Ehp9zYovWw49sVRwEsD8Cs' ); echo RWMB_Map_Field::render_map( $group_values['project_google_map'], $args ); }Call in View:
{{ mb.my_map() }}Please read more on the documentation
https://docs.metabox.io/extensions/mb-views/#running-php-functionsLong Nguyen
ModeratorHi,
Thanks for the feedback.
MB Geolocation does not support populating addresses from the current user location. I will inform the development team to consider supporting this feature in future updates.
September 21, 2021 at 9:27 AM in reply to: ✅Email/text Validation not working on cloneable field #30862Long Nguyen
ModeratorHi,
Thanks for your feedback.
The validation is not working with cloneable fields, please try to use the HTML validation to validate them. Please read more here https://docs.metabox.io/validation/#validation-with-input-attributes
and refer to this topic https://support.metabox.io/topic/validation-does-not-work-for-fields-in-group/
Long Nguyen
ModeratorHi,
The field type
postsaves post ID(s) in the database. Please read more here https://docs.metabox.io/fields/post/#dataYou can use the WordPress function to get post title by ID as well https://developer.wordpress.org/reference/functions/get_the_title/
Long Nguyen
ModeratorHi Kirb,
You need to add the code to the template file of the theme such as
single.phportemplate-parts/content.phpto output the field value. Please read more here https://docs.metabox.io/displaying-fields/#using-codeLong Nguyen
ModeratorHi,
Unfortunately, there is no option to retrieve all MB Blocks on a specific site. You need to contact an expert developer who can help you to create the custom code to do that.
We use PHP code to create the custom blocks easier so use JS code to change the properties of a block is not possible.
Long Nguyen
ModeratorHi,
WordPress does not support highlight the menu archive page for the custom post type. I've searched and found a script code that helps you to highlight it. Find it here https://gist.github.com/gerbenvandijk/5253921
-
AuthorPosts