Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Because the field
grouphas a (very) complicated structure, so we only support to show the list term ID for those fields. We will try to research and improve the fieldgroupto cover this case. Thanks for your patience.Long Nguyen
ModeratorHi,
When you create a template view for a post type, please choose the type Singular and location Post type. In the post field select box, you can click to insert a field of that post type. See my screenshot https://share.getcloudapp.com/v1ueyKRP.
You can generate an HTML table with this tool https://divtable.com/generator/.
Long Nguyen
ModeratorHi,
Thanks for pointing this out, the right shortcode is
[mbv id="9865"].To load the shortcode via ajax, this guide maybe helps you https://wordpress.stackexchange.com/questions/108874/loading-shortcode-with-ajax.
You can also check the correct shortcode with view ID before passing the variable to the shortcode.
$post_id = 9865; $shortcode = '[mbv id="' . $post_id . '"]'; echo do_shortcode( $shortcode );Long Nguyen
ModeratorHi,
For sub-fields in a field group or a cloneable field, the extension only supports to show an object with fields id and values or an array of values that are saved in the database. For fields, it supports show the label of options in revisions as well.
June 10, 2020 at 9:50 AM in reply to: ✅Changing the value of a single field does not trigger revision to be created #20308Long Nguyen
ModeratorHi,
Change a field value trigger to create a revision, please see my screen record https://www.loom.com/share/1d7d1851aa4e4cdebe582df9547ca02f. If you are using Block editor, you should reload the edit page to see the new revision.
Long Nguyen
ModeratorHi,
It is impossible to see the changing relationships in revisions, relationships save the data in a different table
mb_relationships, it's not like fields which are saved as post meta along with revision (post type). But thanks for your idea, I'm going to create a feature request for the developer team to research and support relationships in revision.Long Nguyen
ModeratorHi,
To upload an image for the user's profile (avatar) in the front end, you need to follow this documentation to use the shortcode
[mb_user_profile_info]and this article to create a custom user avatar.Regarding the field
image_advanced, it uses the WordPress Media Library to upload images and need a high level of the user to access the media library. You can use the fieldimageto allow the user to upload images without using the media library.June 9, 2020 at 9:55 PM in reply to: ✅Version 3.3.0 - Breaks Gravity Forms Multi-file uploads #20297Long Nguyen
ModeratorHi,
Thank you for reporting the conflict, I'm going to check it out and let you know later.
Long Nguyen
ModeratorHi,
For the field
number, please use the settings'step' => 'any'to allow a floating number 1,23.For the field
url, please use the right formathttp://www.example.com. To get more information, please follow this document https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/url.Long Nguyen
ModeratorHi Pogeun,
Please update the new version of MB AIO to v1.11.12 to get support for Loco Translate to translate all extensions inside MB AIO. Going to Admin dashboard -> Loco Translate -> Plugins -> Meta Box AIO then you can see extensions' translation ready.
https://share.getcloudapp.com/d5uW4m4BLong Nguyen
ModeratorHi,
Please watch this video to install the plugin Meta Box and free extensions via composer as libraries inside a custom plugin.
Fore premium extensions, please follow this documentation https://docs.metabox.io/extensions/composer/. You can also download the file composer.json in here to get full extensions.
Long Nguyen
ModeratorHi,
Please remove the property
required => truein the code or uncheck the optionRequiredwhen creating/editing the field with the Builder to remove the validation of the field.
https://share.getcloudapp.com/4gujbB6lJune 9, 2020 at 7:28 AM in reply to: ✅How can I access (not-registered) query params in MB Views? #20286Long Nguyen
ModeratorHi,
It is impossible to use a customization work without using a custom function. You can add your custom query var to the public query variables with the filter hook
query_varshttps://developer.wordpress.org/reference/functions/get_query_var/#custom-query-vars.And if you don't want to add the code to the file functions.php, you can use the plugin Code Snippets to implement the code.
June 8, 2020 at 8:56 PM in reply to: ✅How can I access (not-registered) query params in MB Views? #20280Long Nguyen
ModeratorHi,
To get the URL query var, you can use the function
get_query_var()supported by WordPress. The code in View should be{{ mb.get_query_var( 'zrole 'Default value' ) }}. Please follow the documentation https://developer.wordpress.org/reference/functions/get_query_var/.FYI, you can also create your custom function, then use it via
mb.proxy in View. Let's try with sample functionfunction get_my_query_var() { return $_GET['zrole']; }then use in View
{{ mb.get_my_query_var() }}.Let me know how it goes.
Long Nguyen
ModeratorHi,
These hooks maybe help you fire an action after updated an option
update_option_{option_name}: Fires after the value of a specific option has been successfully updated.-
updated_option: Fires after the value of an option has been successfully updated.
For more information, please follow documentations
https://developer.wordpress.org/reference/hooks/updated_option/
https://developer.wordpress.org/reference/hooks/update_option_option/
https://wordpress.stackexchange.com/questions/177272/hook-if-somebody-saves-plugin-options/177280 -
AuthorPosts