Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello Bart,
Please share your site admin account by submitting this contact form https://metabox.io/contact/
I will take a look.Peter
ModeratorHello Jeff,
The extension Frontend Submission only supports submitting posts or custom models in the front end; it doesn't support submitting data to update the settings page. Please read more about this extension in the documentation https://docs.metabox.io/extensions/mb-frontend-submission/
Peter
ModeratorHello John,
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.
January 17, 2025 at 11:43 PM in reply to: OSM map does not render fully when the field has conditional logic #47440Peter
ModeratorHello John,
I think the conditional logic setting isn't correct so it will break the Javascript code and cause the issue with the map which will use some Javascript to display the map in the front end.
Please export the field group to a JSON file and share it here https://docs.metabox.io/extensions/meta-box-builder/#export--import
I will help you investigate the issue.January 17, 2025 at 11:39 PM in reply to: This is a Custom Fields Issue - The Images are Disappearing #47439Peter
ModeratorHello Jon,
If you are using the builder to create custom fields, please export the field group to a JSON file and share it here. I will import the field group to my site and try to reproduce the issue.
Following the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import
January 17, 2025 at 11:35 PM in reply to: Making OSM map invisible? Pin location updates address? Address field behaviour? #47438Peter
ModeratorHello John,
Thanks for reaching out.
1. Currently, you have to add the OSM field to the field group to use the Geolocation feature. It is noted in the documentation https://docs.metabox.io/extensions/meta-box-geolocation/
If you don't want to display the map field, you can add a custom class to the field and create some custom CSS code to hide it.
2. This is also noted in the documentation https://docs.metabox.io/extensions/meta-box-geolocation/#two-way-data-binding
when you change the pin on the map, the latitude and longitude will be changed/updated, not the address. I think that is expected because we don't have addresses for every point/pin on a map such as in a forest, sea, desert ...3. I'm afraid it isn't possible. The address text field is the returned result from OSM/Google API; we just fill it with the returned result. Other address components are extracted from the address field.
Peter
ModeratorHello,
I still cannot reproduce the issue on my demo site to understand what's wrong there. However, I will forward the error message to the development team to check if we can improve something for future updates.
Thank you.
Peter
ModeratorHello,
I suggest you go to Settings > Permalinks > Re-save permalink Post name and check the issue again.
Let me know how it goes.
Peter
ModeratorHello,
Please notice that, we only support issues that are related to Meta Box itself. If you have an issue with a WordPress function or WordPress-related issue, please create a topic in a WordPress support forum https://wordpress.org/support/forum/how-to-and-troubleshooting/
Regarding "the custom fields are not showing", you can pass the variable
$post_idto the third parameter of the helper functionrwmb_meta()to get a field value of a specific post.`$instrument = rwmb_meta( 'instrument', '', $post_id );
Following the documentation https://docs.metabox.io/functions/rwmb-meta/
January 15, 2025 at 10:38 PM in reply to: ✅MB Frontend Submission stopped working in the latest weeks #47418Peter
ModeratorHello,
What happens if you deactivate all other plugins including MemberPress and WPCodeBox? If it still doesn't work, please share your site admin account by submitting this contact form https://metabox.io/contact/
I will take a look.Peter
ModeratorHello,
You should use the helper function rwmb_meta() to get the group field value at once. To get the subfield value in a group, you can read more about using PHP code in the documentation https://docs.metabox.io/extensions/meta-box-group/#examples
then do the same with Twig code in the View template.
https://docs.metabox.io/extensions/mb-views/#twigIt will look like
{% for clone in ... %} {{ clone.instrument }} {% endfor %}Peter
ModeratorHello Rebecca,
I understand that you want to set the post type based on the select field after submitting the frontend submission form. I share with you an example of how to make it work:
1. I have a field group and a simple select field with the options is the CPT slug and label:
[ 'name' => __( 'Content type', 'your-text-domain' ), 'id' => 'content_type', 'type' => 'select', 'options' => [ 'book' => __( 'Book', 'your-text-domain' ), 'post' => __( 'Post', 'your-text-domain' ), 'page' => __( 'Page', 'your-text-domain' ), ], ],2. This field group is added to the frontend form.
3. I use this code to update the post type of the submitted post based on the select:
add_action( 'rwmb_frontend_after_process', function( $config, $post_id ) { if ( isset( $_POST['content_type'] ) ) { $post_type = $_POST['content_type']; $my_post = [ 'ID' => $post_id, 'post_type' => $post_type ]; wp_update_post( $my_post ); } }, 10, 2 );Refer to the documentation
https://docs.metabox.io/extensions/mb-frontend-submission/#form-hooks
https://developer.wordpress.org/reference/functions/wp_update_post/Note: this is an example. If it doesn't work or does not meet your requirements, you can contact us here to request a customization service https://metabox.io/contact/
January 15, 2025 at 8:47 PM in reply to: image_advanced don't resize images like wordpress do. #47415Peter
ModeratorHello,
Can you please tell me more about this state "I discovered than upload image using image_advanced don't resize pictures like WordPress do"?
The field image_advanced uses the WordPress media library popup and allows users to upload images on the site so WordPress also generates thumbnail images for the uploaded images as well. You can check the thumbnail images in the folder /wp-content/uploads/current-year/current-month folder.
Peter
ModeratorHello,
I add your code to the file functions.php in the theme folder, edit a post, add some sample value and save. The value is saved to the database properly, without any issues. Here is the screen record https://imgur.com/pMriFJ1
If it still doesn't work on your site, please share the site admin account by submitting this contact form https://metabox.io/contact/
I will take a look.Peter
ModeratorHello Tanja,
The child item is hidden by default and you need to check the parent item to show the child item. There isn't an option to show the child item as default. Please follow the documentation https://docs.metabox.io/custom-select-checkbox-tree/
-
AuthorPosts