Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
You can try to use the action hook
save_postorinitand pass specific IDs to the API and check if it works:
MB_Relationships_API::add( 123, 456, 'users_university_institution');Following the documentation
https://developer.wordpress.org/reference/hooks/save_post/
https://developer.wordpress.org/reference/hooks/init/Peter
ModeratorHello,
There isn't an option to overwrite an existing file if it already exists, WordPress itself also doesn't support this feature. If you are familiar with coding, please take a look at this snippet as a reference
https://gist.github.com/robbennet/7305119June 28, 2024 at 10:23 PM in reply to: Bug Report: Taxonomy Select Fields Data Interference in Multiple Meta Boxes #45764Peter
ModeratorHello Nathaniel,
Thank you for your feedback.
Actually, it isn't a bug. Your case is noted in the documentation when using the
taxonomyfield
https://docs.metabox.io/fields/taxonomy/#dataThe purpose of this field is to replace the default WordPress meta box for taxonomy and offer more options to control how it displays. For this reason, if you have two taxonomy fields, and select different values for them, after saving, they still show the same value.June 28, 2024 at 10:19 PM in reply to: Map field default location in clonable group....via AJAX? #45763Peter
ModeratorHello,
The user would need to input multiple markers on a map - I don't believe that's possible.There are two cases:
- When adding the map input value: yes, it isn't possible to add more markers on a map.
- When outputting the map value: it is possible with custom code.How do I set the redirect to view the newly created submission post?If the attribute
edit="true", after submitting the frontend form, you can edit the post directly. That means seeing the same frontend form with submitted data. If it doesn't work, can you share the frontend shortcode?June 28, 2024 at 10:06 PM in reply to: ✅Display Content of Shortcode in WYSIWYG Field on Frontend #45762Peter
ModeratorHello,
Please share your site credentials by submitting this contact form https://metabox.io/contact/
I will take a look.Peter
ModeratorHello,
If you use the code to register the meta box (field group in the builder UI), you need to add
geoto the meta box settings. For example:add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) { $meta_boxes[] = [ 'title' => 'Event details', 'post_types' => 'event', 'geo' => [ 'api_key' => 'YOUR API KEY', ], 'fields' => [ ... ], ]; return $meta_boxes; } );Peter
ModeratorHello Steve,
There are two issues on your site:
1. The table name is not added in the field group settings.
2. Unknown issue with Cuisine and restaurent-tags taxonomies. I move it to the trash and restore it back.Then I can save the field value to the custom table as well.
Peter
ModeratorHello,
Do you add the setting
geoto the field group settings? Please follow the documentation https://docs.metabox.io/extensions/meta-box-geolocation/#field-group-settingsJune 27, 2024 at 10:13 PM in reply to: How to determine type (post/user) of $object_id passed in rwmb_after_save_field #45751Peter
ModeratorHello,
You can use some WordPress function to check the type of the object ID
https://developer.wordpress.org/reference/functions/get_user_by/
https://developer.wordpress.org/reference/functions/get_post/If you don't want to check the object type, you can use the specific filter with the field ID that is associated with an object type.
rwmb_{$field_id}_after_save_fieldJune 27, 2024 at 9:44 PM in reply to: Map field default location in clonable group....via AJAX? #45750Peter
ModeratorHello,
If you want to show the default value for the subfield in a cloneable group, you can follow the documentation https://docs.metabox.io/extensions/meta-box-group/#setting-default-group-values
There isn't an option to get the value of the 1st subfield and display it as the default value of the 2nd subfield.
It is possible to display multiple markers on a map, you need to create some custom code to do that. Here is a reference https://metabox.io/display-all-listings-on-a-map/
Peter
ModeratorHello,
In this step https://metabox.io/display-all-listings-on-a-map/#display-data-using-javascript
you will need to use the script code that supports showing Google Map
https://developers.google.com/maps/documentation/javascript/adding-a-google-mapIf you are not able to complete the task, we offer a customization service with an extra fee. Please contact us here for more details https://metabox.io/contact/
Peter
ModeratorHello,
As I mentioned above, this issue has been escalated to the development team and currently we don't have any clue how this happens. I will get back to you if I have more information.
Thank you.
Peter
ModeratorHello,
1, 2. You can create a taxonomy field and enable the admin columns option with Searchable, Filterable settings. Also, turn off the admin column when creating the taxonomy Funnel Category: Meta Box > Taxonomies > Funnel Category > Advanced tab.
Following the documentation
https://docs.metabox.io/extensions/mb-admin-columns/
https://docs.metabox.io/fields/taxonomy/3. There isn't an option to have a toggle button like that.
Peter
ModeratorHello Steve,
I did check the "Save data in a custom table" box.Can you check if the custom table is created in the database? And make sure the column titles match the field IDs in the field group.
Following the documentation https://docs.metabox.io/extensions/mb-custom-table/
June 26, 2024 at 10:40 PM in reply to: Map field default location in clonable group....via AJAX? #45730Peter
ModeratorHello Andrew,
I'm afraid that there isn't an option to set the default value of the next map field by the value of the previous map field.
-
AuthorPosts