Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Yes, here is the link https://imgur.com/RXAihQ4
and sample code:'preview' => [ 'image' => 2140, //image ID 'name' => 'William Shakespeare', 'content' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam' ], 'fields' => [ [ 'type' => 'text', 'id' => 'name', 'name' => 'Name', ], [ 'type' => 'textarea', 'id' => 'content', 'name' => 'Intro', ], [ 'type' => 'single_image', 'id' => 'image', 'name' => 'Image' ], ],Long Nguyen
ModeratorHi,
Your group has the ID
project_address, notproject_address_group. If you want to use the PHP language to show the map, please try to use this code$group_values = rwmb_meta( 'project_address' ); $args = array( 'api_key' => 'AIzaSyCxo8eTReDw2Ehp9zYovWw49sVRwEsD8Cs' ); echo RWMB_Map_Field::render_map( $group_value['project_google_map'], $args );Refer to this topic
https://support.metabox.io/topic/google-maps-using-default-api-key-mb-settings-page-with-meta-box-groups/And the setting
api_keyin the meta box settings should be in lowercase.'geo' => [ 'api_key' => 'AIzaSyCxo8eTReDw2Ehp9zYovWw49sVRwEsD8Cs', ],September 20, 2021 at 2:32 PM in reply to: ✅I purchased 2 lifetime bundle. And I would like to get refund my first order. #30838Long Nguyen
ModeratorHi,
I've issued you a full refund.
Let me know if need anything further!September 20, 2021 at 2:27 PM in reply to: MB Relationships and WPML: Relations are not being copied when duplicating #30837Long Nguyen
ModeratorHi,
Thanks for your feedback.
MB Relationships use a custom table to save data in the database so it might be not compatible with WPML. I will inform the development team to consider supporting this case in future updates.
Long Nguyen
ModeratorHi,
MB Blocks has not had an option to set the default alignment yet. I will inform the development team to support this in future updates.
Long Nguyen
ModeratorHi Roger,
Thank you for reaching out.
You can use the Builder to create custom fields and create admin columns, please take a look at my screenshot https://share.getcloudapp.com/NQuY96el
September 20, 2021 at 11:17 AM in reply to: How Do I Get the Clone (repeater) Custom Field to Show Data? #30832Long Nguyen
ModeratorHi,
The value returned is array fields then you need to create a loop to iterate array items to show their value. Can you please let me know what is the field type that you are using?
September 19, 2021 at 4:20 PM in reply to: ✅How to show user profile field for specific user (not current or author)? #30824Long Nguyen
ModeratorHi,
To get the user meta value, please follow this documentation https://docs.metabox.io/extensions/mb-user-meta/#getting-field-value
For example:
{% set admin_status = mb.rwmb_meta( 'radio_mb1qf9lcy2b', {object_type: 'user'}, 133 ) %} {{ admin_status }}Long Nguyen
ModeratorHi,
You can select the Location for post type
elementor_librarythen select a specific template in Advanced Location Rules, screenshot https://share.getcloudapp.com/4gulGXARLong Nguyen
ModeratorHi Paul,
Currently, Elementor does not support showing the relationship posts. You need to use the code to create the template, or a shortcode to the relationship posts.
Refer to the documentation https://docs.metabox.io/extensions/mb-relationships/
and this topic https://support.metabox.io/topic/displaying-2-custom-post-types-via-a-relationship-custom-post-type/Long Nguyen
ModeratorHi Thomas,
Please make sure that the option Featured Image is checked in the Screen Options box. Screenshot https://share.getcloudapp.com/lluoWGOg
Then follow the step Debugging Information to troubleshoot this issue https://support.metabox.io/topic/how-to-create-a-new-topic/
Long Nguyen
ModeratorHi,
I will check that issue and get back to you later.
Long Nguyen
ModeratorHi,
To pass the current post ID to the variable
args, you can use your variablethe_post_idor use the current objectpost.ID. And you should use another name for custom post object to separate with the current post object. For example{% set args = { post_type: 'product', posts_per_page: 1, meta_query: [ { key: 'product_producer', value: the_post_id } ] } %} {% set args = { post_type: 'product', posts_per_page: 1, meta_query: [ { key: 'product_producer', value: post.ID} ] } %}{% set my_posts = mb.get_posts( args ) %} {% for my_post in my_posts %}Long Nguyen
ModeratorHi,
It has been already added in the documentation, please find it here https://docs.metabox.io/extensions/mb-views/#custom-query
September 16, 2021 at 8:54 PM in reply to: Creating Signature Field for MB Frontend Submission #30796Long Nguyen
ModeratorHi,
Thanks, I will forward it to the development team.
-
AuthorPosts