Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi Ole,
That means you need to use a second
forloop to iterate through$term_imagearray to get images$term_image = rwmb_meta( 'term_flag', ['object_type' => 'term'], $term->term_id ); if( is_array( $term_image ) ) { foreach ( $term_image as $image ) { echo '<img src="'. $image['full_url'] .'">'; } }Long Nguyen
ModeratorHi,
For the default
postandpageof WordPress, Meta Box does not have an option to remove the default content box. But you can try to use this code to remove it.// Remove the editor. Change 'post' to your custom post type. add_action( 'init', function () { remove_post_type_support( 'post', 'editor' ); } );Refer to this tutorial https://docs.metabox.io/save-wysiwyg-content-post-content/
March 22, 2022 at 12:47 PM in reply to: Unable to load MB Frontend Submission via Ajax - Permissions not allowed #35190Long Nguyen
ModeratorHi,
The form will have the same fields and IDs on one page so it is not possible to accomplish this case with Meta Box. I will inform the development team to consider supporting this case in future updates.
March 22, 2022 at 12:30 PM in reply to: ✅Use Google Maps on backend and display Open Street Maps in Template #35189Long Nguyen
ModeratorHi,
Yes, it is possible. Field Google Maps and OSM save the same data format in the database so we can display the OSM on the frontend based on the value of the Google Maps field. Here is the sample code
$location = rwmb_get_value( 'google_map' ); $map = implode( ',', $location ); echo RWMB_OSM_Field::render_map( $map );Read more on the documentation https://docs.metabox.io/fields/osm/#template-usage
Long Nguyen
ModeratorHi Ryan,
Can you please share some screenshots of the issue? Please follow this article to know how to increase the PHP setting
max_input_varsto avoid losing data after saving post.
https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/And refer to this topic https://support.metabox.io/topic/cant-save-more-of-10-relationships-from-admin
to avoid losing data if you add more than 10 connection items.March 21, 2022 at 11:16 PM in reply to: How to populate cities selection based on the province field #35183Long Nguyen
ModeratorHi,
I'm afraid there are no settings or options to populate a field value base on another field value. You can use AJAX to update the selection of a field. Read more on the documentation
https://codex.wordpress.org/AJAX_in_PluginsMarch 21, 2022 at 11:04 PM in reply to: Is it Possible to Have Relationship Metabox Editable Only on One Side? #35182Long Nguyen
ModeratorHi,
You can use the field type
selectand add the attributedisabledto an object type to disable edit/add more connected objects. For example:MB_Relationships_API::register( [ 'id' => 'job-to-post', 'from' => [ 'object_type' => 'post', 'post_type' => 'job', 'field' => [ 'type' => 'select', 'disabled' => true //here ] ], 'to' => [ 'object_type' => 'post', 'post_type' => 'post', ], ] );Read more on the documentation https://docs.metabox.io/extensions/mb-relationships/#syntax
https://docs.metabox.io/field-settings/Long Nguyen
ModeratorHi,
Thanks for your feedback.
The setting
force_deletefile of the fieldfileis not working properly in a cloneable group. I will inform the development team to fix this issue in future updates.March 21, 2022 at 4:37 PM in reply to: Unable to load MB Frontend Submission via Ajax - Permissions not allowed #35176Long Nguyen
ModeratorHi,
It is not possible to display the frontend submission via Ajax request. Please refer to this topic https://support.metabox.io/topic/js-call-mb_frontend_form-shortcode/
A user also wants to do that but there is no way to load JS, CSS files when you call Ajax and render the frontend form by the function
do_shortcode().March 21, 2022 at 12:45 PM in reply to: Field Group values not saving on submit outside My Account area #35171Long Nguyen
ModeratorHi,
Can you please share the code that creates the field group
child-detailson your site? I've tested to add the user profile shortcode in the cart page, submit data and it saved as well.Code
add_action( 'woocommerce_before_cart_table', function() { echo do_shortcode( '[mb_user_profile_info id="user-meta" submit_button="Submit" confirmation="Your information has been successfully submitted. Thank you."]' ); } );Screen record https://monosnap.com/file/xLSM0Yv05MCzJuDN7GB5nl2zf7MYxc
Long Nguyen
ModeratorHi,
For the custom post type, you can go to tab Supports when creating/editing the post type to disable block editor, comments ...
Refer to this documentation https://docs.metabox.io/creating-post-types/#supports-settings
March 21, 2022 at 12:20 PM in reply to: ✅Can't save location for custom field groups, always reverts to POSTS #34696Long Nguyen
ModeratorHi,
You can try to follow this tutorial to increase the PHP setting
max_input_varsto fix the issue
https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/Let me know how it goes.
March 21, 2022 at 12:17 PM in reply to: ✅Error : "Invalid File" when delete image - Custom Field - User - Type : Image #34695Long Nguyen
ModeratorHi Sherwin,
This issue has been fixed from version 5.4.7 of Meta Box. Can you please confirm it works?
Long Nguyen
ModeratorHi,
The extension MB Admin Columns support creating admin columns for the custom fields, not for the taxonomy like that. Please read more on the documentation https://docs.metabox.io/extensions/mb-admin-columns/
WordPress also supports searching the term item on the taxonomy page in the admin area.
Long Nguyen
ModeratorHi,
If Meta Box is already included in a third-party plugin and activated on your site, you can follow the documentation to use the filter hook to register meta boxes and custom fields with coding.
https://docs.metabox.io/creating-meta-boxes/#using-code -
AuthorPosts