Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
Hooking the callback function to the
save_posthook, the relationship is added as well. Here is an exampleadd_action( 'save_post', function() { MB_Relationships_API::add( 2, 1, 'page-to-user'); //page ID 2, user ID 1 } );if it doesn't work on your site, you can try to deactivate all plugins except Meta Box, MB extensions plugin and switch to a standard theme of WordPress and recheck the issue.
Peter
ModeratorHello Anna,
What is the field ID of the single image field on your site? You can follow the documentation to output the single image field
https://docs.metabox.io/fields/single-image/#template-usagePeter
ModeratorHello Andrew,
Meta Box doesn't have an option to add the custom field to the URL. You can try to use a third-party plugin that supports this feature, for example https://permalinkmanager.pro/docs/tutorials/how-to-use-custom-fields-inside-wordpress-permalinks/
Peter
ModeratorHello Julian,
Currently, there isn't an option or a filter hook to change the favorite icon. I will inform the development team to consider supporting this feature in future updates.
Peter
ModeratorHello Julian,
There is a small margin at the left (4 px)of the button text. If you want to remove it, please use this custom CSS code:
.mbfp-text .margin-left { margin-left: 0; }Peter
ModeratorHello Julian,
You can follow the documentation https://docs.metabox.io/extensions/mb-favorite-posts/#data
to create a custom query, output the favorite posts with any data from the post.June 30, 2024 at 2:49 PM in reply to: ✅Display Content of Shortcode in WYSIWYG Field on Frontend #45779Peter
ModeratorSo the issue arises from the Bricks builder, not from Meta Box itself. Thanks for sharing the solution.
Peter
ModeratorHello,
This feature works properly on my demo site. Please add some new value to all fields and recheck the issue. If it doesn't work, please share some screenshots of the issue on your site.
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.
-
AuthorPosts