Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi Totis,
There are 3 forms supported:
- Registration form
- Login form
- Profile formwith the corresponding form ID:
-register-form
-login-form
-profile-formYou can use the form ID to select the submit button on a form like this:
#login-form #submitNovember 17, 2020 at 9:47 AM in reply to: ✅Bug (maybe) MB Custom Table with Select Advanced field #22875Long Nguyen
ModeratorHi,
I'm going to check it out and let you know later.
Thank you.
November 16, 2020 at 10:06 AM in reply to: ✅Custom Slug for Custom Post Type with Custom Taxonomy #22861Long Nguyen
ModeratorHi,
The extension MB Custom Post Type only supports to create the CPT and rewrite the CPT slug. If you want to add the taxonomy slug to the CPT URL, please follow this topic from WPSE https://wordpress.stackexchange.com/questions/94817/add-category-base-to-url-in-custom-post-type-taxonomy.
Long Nguyen
ModeratorHi,
Use the helper function rwmb_meta() to get the field
single_imagevalue returns an array of image information.So you just need to echo the array key full_url to show the image URL.
function acf_picture($mb_field) { $output_array = rwmb_meta($mb_field, ['storage_type' => 'custom_table', 'table' => $wp_square] ); echo $output_array['full_url']; }Regarding the cache, the extension MB Custom Table supports caching the query. That means, if you call the helper function several times for the same $post_id, it will only query once with the default expiration time (0 seconds). See more in this documentation https://developer.wordpress.org/reference/functions/wp_cache_set/.
Long Nguyen
ModeratorHi Toni,
You need to add a class for the start date.
array( 'name' => 'Group date', 'id' => 'group_date', 'type' => 'group', 'clone' => true, 'fields' => array( array( 'name' => 'Date To Text', 'id' => 'date_to_text', 'type' => 'text', 'class' => 'date_to_text' ), array( 'name' => 'Start Date', 'id' => 'start_date', 'type' => 'date', // Date picker options. See here http://api.jqueryui.com/datepicker 'js_options' => array( 'dateFormat' => 'yy-mm-dd', 'showButtonPanel' => false, ), 'class' => 'start_date' // here ), ), ),then change the JavaScript code to:
$('body').on('change', '.start_date input', function() { var startDate = $(this); startDate.parents('.rwmb-group-clone').find('.date_to_text input').val(startDate.val()); });See my screen record https://share.getcloudapp.com/d5upZkj0.
November 14, 2020 at 9:30 AM in reply to: ✅Is it possible to suppress the title from showing? #22848Long Nguyen
ModeratorHi Martin,
To remove the meta box title in the user profile page, please add this code to the file functions.php in the theme folder or use the plugin Code Snippets.
add_action( 'init', function() { remove_all_actions( 'rwmb_before_metaboxID' ); }, 99 );Change
metaboxIDwith your meta box ID, see https://share.getcloudapp.com/L1uQqRp4.Long Nguyen
ModeratorHi Clayton,
I've received your ticket via Freshdesk:
I keep getting an error when trying to submit more information on this bug. I hope all of this information goes through fine. To recreate this issue, - Install Metabox and MB Groups on WP. - Register the group field. - Register the taxonomy. - Create taxonomy terms. - Create a post. - Select a taxonomy term with the select field in the group field. - Save the post. - Refresh the page. What you will see is the select field has no value but the database stored the proper value from the select field. The new raw filter for the group field is preventing the field from showing the actual value. Please have a look at the first comment from this ticket to see where we think the problem is.The field
taxonomydoesn’t store any terms in the post meta. Instead, it sets post terms. Just like a replacement of Category or Tag meta box of WordPress so it does not work with Group. If you want to save the taxonomy as the post meta, please use the fieldtaxonomy_advanced.For more information, please follow these documentations.
https://docs.metabox.io/fields/taxonomy-advanced/
https://docs.metabox.io/fields/taxonomy/#dataNovember 13, 2020 at 9:52 AM in reply to: ✅Is it possible to suppress the title from showing? #22830Long Nguyen
ModeratorHi Martin,
The text "Meta Box Title" is the default title which displays when the meta box has an empty title. If you use the code to show the meta box and fields, leave the title with a space to remove it.
$meta_boxes[] = array( 'id' => 'meta-box-id', 'title' => ' ', 'post_types' => 'post_type', ...Or use this custom CSS code in the admin area to hide it.
#meta-box-id h2.hndle { opacity: 0; }See https://share.getcloudapp.com/12urWRyB.
Or use the meta box setting
'style' => 'seamless'remove the wrapper box and display fields seamlessly. Follow the documentation https://docs.metabox.io/creating-meta-boxes/#meta-box-settings.November 13, 2020 at 9:34 AM in reply to: ✅Is there a way to edit user meta data through frontend submission? #22829Long Nguyen
ModeratorHi Eddy,
To edit the user profile on the front end, please use the extension MB User Profile with the shortcode [mb_user_profile_info]. See more in the documentation https://docs.metabox.io/extensions/mb-user-profile/#edit-profile-form.
November 13, 2020 at 9:31 AM in reply to: ✅Is it possible to move all CPT and CF data from Pods to MetaBox? #22828Long Nguyen
ModeratorHi there,
If you want to use the Meta Box on the same site instead of Pods, it is possible.
WordPress saves the post and custom fields in the database even you delete the post type or deactivate the plugin Pods. Just deactivate the plugin Pods and create a new post type by using MB Custom Post Type with the same post-type-slug.
For custom fields, you can create new fields with the same field ID and the corresponding field type of Meta Box to use the current field value of the post.
Long Nguyen
ModeratorHi,
Please share your admin site account via this contact form https://metabox.io/contact/. I will check this issue.
Long Nguyen
ModeratorHi,
The ID of the field when rendering to HTML code for a cloneable group is very complicated. You can add a custom class to the field text.
array( 'name' => 'Group date', 'id' => 'group_date', 'type' => 'group', 'clone' => true, 'fields' => array( array( 'name' => 'Date To Text', 'id' => 'date_to_text', 'type' => 'text', 'class' => 'date_to_text' // here ), ), )then change the selector in JavaScript code to
$('.date_to_text input').val(startDate.val());to make all text fields in the cloneable group populate the date from the start date.
Long Nguyen
ModeratorHi,
Have you tried to leave a new comment?
November 11, 2020 at 9:53 AM in reply to: ✅Do I need to install individual extensions after installing AIO? #22798Long Nguyen
ModeratorHi Arturo,
No, the plugin Meta Box AIO includes all supported extensions that's why it calls All In One.
If it shows an empty screen when going to Meta Box > Post Types, please try to deactivate all plugins except Meta Box, Meta Box AIO, and clear the cache then create a new CPT again.
If you create a post type and don't see the content on the single post page. Please go to Admin Dashboard > Settings > Permalinks > Save the current settings again to update settings for the new CPT.
Long Nguyen
ModeratorHi,
- The extension MB Relationships helps you to create relationships (connections) between posts, terms, and users in a flat connection, not a hierarchical or nested connection.
- To limit the number of connections, please use the field setting
max_clone. Follow this documentation for more information https://docs.metabox.io/extensions/mb-relationships/#syntax.
I think you can use the CPT and taxonomies with the hierarchy to easily select on the backend and query to show on the front end.
-
AuthorPosts