Forum Replies Created
-
AuthorPosts
-
March 28, 2023 at 6:49 PM in reply to: ✅Changing the Post Title/Slug after front-end submissions based on fields #41242
Peter
ModeratorHello,
Follow the documentation, you can get the post type and post ID from the
$objectvariable. For example:add_action( 'rwmb_frontend_after_save_post', 'update_cats_post_title'); function update_cats_post_title( $object ) { $post_type = $object->post_type; $post_id = $object->post_id; if ( 'cats' == $post_type ) { ... } }https://docs.metabox.io/extensions/mb-frontend-submission/#post-actions
Let me know how it goes.
Peter
ModeratorHello,
Thank you for your details. In general, I think the issue is not on the side of Meta Box. What Meta Box supports here is a custom post type and custom fields to display on the frontend. I'm not sure what option or feature you are using on your local site to filter the post (location) automatically based on moving the map. I suggest you can contact WP Gridbuilder to ask for help with this issue.
You can also update the locations in bulk by going to admin area > Location > Bulk select posts > Edit > Just click on Update, see this screenshot https://monosnap.com/file/dzKzxaT4aOBA4GEDBcbJjH12pP6MNE
March 27, 2023 at 11:03 PM in reply to: ✅CPT, Custom Taxonomy with added image field: how do I get the image? #41233Peter
ModeratorHello,
It's an array of term objects so you need to use a loop to get each term ID. In this case, you can use the sample code to get the author images:
$images = rwmb_meta( 'tax_image', [ 'object_type' => 'term', 'size' => 'thumbnail' ], $terms[0]->term_id );March 27, 2023 at 9:16 PM in reply to: Type File and validation of MIME types: how does it work? #41231Peter
ModeratorHello,
I also see it does not work on my demo site. I'm asking our development team to check the issue and get back to you later.
March 27, 2023 at 8:38 PM in reply to: How to move 4000+ custom posts in a new custom table? Please help #41229Peter
ModeratorHello,
>> So, what will be the code in my case?
You don't need to change the function name, just copy it to your theme or child theme folder. After migrating data, you can delete the code then.>> Do I need to write Parent Theme Name or Child Theme Name and how? Should I write WP_Astra or WP Astra while writing the theme name, if it’s parent theme?
You can add the code to the main theme or child theme, both of them are ok.>> The given code at https://metabox.io/move-custom-fields-data-to-custom-tables/ only provides the example for post_type ( companies ) but not for Taxonomies.
You can change the post type to your post type (tool). But for the taxonomy, the code will be different. Because it is beyond our scope of support to provide a custom code for your specific needs. You can contact us here to request a customization service https://metabox.io/contact/Peter
ModeratorHello,
MB Frontend Submission does not support displaying a multi-step form. You can try to create some custom JavaScript code to show/hide the part of form or tabs when clicking on the next/previous button.
March 27, 2023 at 8:20 PM in reply to: Why there's no function to get the fields out of a field group? #41227Peter
ModeratorHello,
Meta Box does not support a function to get all fields of a field group like that. You can use the function
get_post_meta()to get all post meta associated with a post. Please follow the documentation
https://developer.wordpress.org/reference/functions/get_post_meta/March 27, 2023 at 8:13 PM in reply to: Prefill Custom fields from other custom fields in a different CPT #41226Peter
ModeratorHello,
There is no option to prefill the field value from another field after selecting the Template CPT. You can try to use the action hook
rwmb_after_save_postto update the field value (post meta) after saving the post.Please follow the documentation https://docs.metabox.io/actions/rwmb-after-save-post/
March 27, 2023 at 8:05 PM in reply to: Beaver Builder image gallery connection to Metabox field #41225Peter
ModeratorHello,
The problem is resolved. The error happens when using the cloneable image_advanced field, it is not compatible with the current version of MB Beaver Themer Intergrator.
March 27, 2023 at 8:03 PM in reply to: ✅CPT, Custom Taxonomy with added image field: how do I get the image? #41224Peter
ModeratorHello,
Can you please print out the variable
$termsto see what value it is stored?Peter
ModeratorHello Jochen,
I do not understand your question clearly. WordPress does not support using Gutenberg editor to create the category or taxonomy item like in your screenshot. The field wysiwyg also does not support using Gutenberg editor in the field content.
Peter
ModeratorHello,
Please update the plugin MB Core to the latest version 1.8.0 to fix the issue. Let me know how it goes.
Peter
ModeratorHello there,
If you want to display multiple pins on a map, please follow the article below https://metabox.io/display-all-listings-on-a-map/?swcfpc=1
If you want to make the map field works with the Map Facet addon of WP Grid Builder, you will need to remove the third value (zoom) of the map field value. Please refer to this topic https://support.metabox.io/topic/how-to-remove-zoom-level-from-location-output/?swcfpc=1
and documentation https://docs.metabox.io/fields/map/#dataPeter
ModeratorHello there,
Does the relationship itself work with the frontend submission form on your site, without WS Form? If yes, you need to contact WS Form support to get further assistance, the integration is maintenance from WS Form side.
March 25, 2023 at 11:36 AM in reply to: Updates from REST aren't applied when using Custom Table #41208Peter
ModeratorHello,
Thanks for your feedback.
I can see that issue on my demo site and I've escalated it to the development team to check and fix the issue in the next update.
-
AuthorPosts