Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi Eddy,
There is a bit of difference between two field types
imageandsingle_image. The fieldimageis set to multiple so you have to loop through the array of the returned value to get the image information.
https://docs.metabox.io/fields/image/#dataYou can use the function reset() to get the first-one element of array.
$images = rwmb_meta( 'info', array( 'limit' => 1 ) ); $image = reset( $images ); ?> <img src="<?php echo $image['url']; ?>">Get more details here https://docs.metabox.io/fields/image/#template-usage.
April 11, 2021 at 2:27 PM in reply to: ✅Shortcodes to display settings data doesn't work in my theme's header #27145Long Nguyen
ModeratorHi,
It is possible that the theme does not support adding the shortcode to the header contact (phone, email...). You can contact theme support to ask for help in this case.
Long Nguyen
ModeratorHi,
Create new template files for the custom post type is a good way. For more information, please follow this documentation https://developer.wordpress.org/themes/template-files-section/custom-post-type-template-files/.
Long Nguyen
ModeratorHi Maria,
Follow the documentation https://docs.metabox.io/extensions/mb-blocks/, you can create your own list then style the elements with some custom CSS code to change the list to a bulleted or unorder list as well.
https://www.w3schools.com/css/css_list.aspApril 11, 2021 at 2:07 PM in reply to: ✅Tag Archive - my view gets ignored when rendering "Only the post content area" #27142Long Nguyen
ModeratorHi Eddy,
Please take a look at my screen record https://share.getcloudapp.com/OAuPq704, and let me know if you understand how it works.
April 11, 2021 at 1:52 PM in reply to: ✅Absolute noob, couldn't figure out how to create the setting page #27140Long Nguyen
ModeratorHi,
The shortcode or the helper function rwmb_meta() only helps you to output the value. It does not support adding the class to the value.
You should wrap the value inside a
<div class="my-custom-class">tag then style with the CSS class.For example:
<div class="my-custom-class"> your shortcode goes here </div>CSS code:
.my-custom-class { do your stuff }If you are using the Elementor, just add the custom class via Elementor option CSS Classes, screenshot https://share.getcloudapp.com/2Nuwypne.
April 11, 2021 at 1:36 PM in reply to: ✅mb_user_profile_register autocomplete="new-password" ? #27139Long Nguyen
ModeratorHi Adam,
Thank you for getting in touch.
If you want to add any attribute to a field input, please follow this documentation https://docs.metabox.io/custom-attributes/.
Then use filter rwmb_profile_register_fields to customize/modify the user register fields.
Sample code:
function add_more_registration_fields( $fields ) { $fields = [ 'password' => [ 'name' => __( 'Password', 'mb-user-profile' ), 'id' => 'user_pass', 'type' => 'password', 'required' => true, 'desc' => '<span id="password-strength" class="rwmb-password-strength"></span>', 'attributes' => [ 'autocomplete' => 'new-password' ] ], 'username' => [ 'name' => __( 'Username', 'mb-user-profile' ), 'id' => 'user_login', 'type' => 'text', 'required' => true, ], 'email' => [ 'name' => __( 'Email', 'mb-user-profile' ), 'id' => 'user_email', 'type' => 'email', 'required' => true, ], 'password2' => [ 'name' => __( 'Confirm Password', 'mb-user-profile' ), 'id' => 'user_pass2', 'type' => 'password', 'required' => true, ], // ... add more fields here ]; return $fields; } add_filter( 'rwmb_profile_register_fields', 'add_more_registration_fields' );Refer to the topic
https://support.metabox.io/topic/registration-username-as-email-duplicated-fields-avatar-visibility-issue/
https://support.metabox.io/topic/sort-the-username-and-email-fields/Long Nguyen
ModeratorHi,
Thank you for your feedback.
I'm going to inform the development team to check this issue and fix it in future updates.
Long Nguyen
ModeratorHi,
Thank you for your feedback.
I will inform the development team to consider adding this plugin to the roadmap for our future development.
Long Nguyen
ModeratorHi,
- You can still use the Additional CSS in the customizer to override the style of the frontend dashboard. Just need to specificity class, for example, current CSS code of the
Add Newbutton in the frontend dashboard
.mbfs-add-new-post { text-decoration: none; padding: .5em 1em; color: #fff; background: #45cbf7; border-radius: .25em; transition: .3s; display: inline-block; margin: 1em 0; }specificity class is
body .mbfs-add-new-post { color: red; }Get more details here https://stackoverflow.com/questions/20954715/how-to-override-the-properties-of-a-css-class-using-another-css-class.
- Or follow this article to create a CSS file without using Additional CSS https://metabox.io/style-meta-boxs-custom-fields-using-css/
Long Nguyen
ModeratorHi,
Thank you for getting in touch.
Did you create a meta box and custom fields for the user? You can use the Builder to do that, screenshot https://share.getcloudapp.com/o0u68Gbv.
Then the shortcode would be:
[ mb_user_profile_register id="user-meta" label_submit="Register" confirmation="Your account has been created successfully." ]April 10, 2021 at 9:31 PM in reply to: ✅Absolute noob, couldn't figure out how to create the setting page #27119Long Nguyen
ModeratorHi,
To get show the field value of the settings page via shortcode, please try to use this
[rwmb_meta id="datos_direccion_de_la_empresa" object_type="setting" object_id="my_options"]my_optionsis the option name, not the variable$my_options. If the shortcode does not work, please share the code that creates the settings page and custom fields, I will check it on my end.
https://docs.metabox.io/extensions/meta-box-builder/#getting-php-codeIn general, you should have a basic knowledge of WordPress and coding (PHP, HTML, CSS) to use Meta Box.
Long Nguyen
ModeratorHi,
It is possible that the form does not support executing a function inside the curly bracket. Please try to contact the form support to ask for sending emails with custom field value.
April 9, 2021 at 10:37 PM in reply to: ✅Open Street Maps: Exposing Latitude, Longitude, Zoom Level #27100Long Nguyen
ModeratorHi,
I will inform the development team to explore the possibility. Thanks for your feedback.
Long Nguyen
ModeratorResolve in the ticket system.
- You can still use the Additional CSS in the customizer to override the style of the frontend dashboard. Just need to specificity class, for example, current CSS code of the
-
AuthorPosts