Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
If you use the View template, you can access the
alignattribute via theattributesvariable. Here is an example:Print attributes: {{ attributes.align }}December 10, 2024 at 3:46 PM in reply to: How to Create a Frontend Submission Form with Custom Meta Fields? #47147Peter
ModeratorHello,
If you have a separate group with 3 custom fields, you can add the field group ID (meta box ID) to the frontend form shortcode to allow users to submit 3 fields in the frontend form.
Please follow the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#faqHere is an example:
[mb_frontend_form id="meta-box-id-1,meta-box-id-2,meta-box-id-3" post_fields="title,content"]Peter
ModeratorHello Topher,
Can you please also share the code that creates the field group? Or export the field group to a JSON file and share it here. I will import it to my demo site and use your code to output the subfield value to see how it displays in the frontend.
Following the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--importPeter
ModeratorHello Topher,
Yes, you can add a column for the field on the taxonomy admin page. Please notice the default column name to show the custom column before/after it. See this screenshot https://imgur.com/a/Z41PD4M
If the default column name is wrong, the custom column won't display on the taxonomy admin page.Peter
ModeratorHello Nick,
In the example code on the documentation page, we also share a way to get the post field data by using the global variable
$_POST
https://docs.metabox.io/extensions/mb-frontend-submission/#validationadd_filter( 'rwmb_frontend_validate', function( $validate, $config ) { // Check only if you're on the right form. if ( 'your-meta-box-id' !== $config['id'] ) { return $validate; } // Check if users have selected files for an image upload field. if ( empty( $_POST['image_upload_field'] ) ) { $validate = false; // Return false to show an error message. } return $validate; }, 10, 2 );Please try this on your end and let me know how it goes.
December 9, 2024 at 11:11 PM in reply to: Unintended auto-update crashes custom fields and causes fatal error #47138Peter
ModeratorHello,
Some Meta Box premium extensions don't have the option to enable/disable auto-update. I'm discussing this feature with the development team and get back to you later.
Thank you.
Peter
ModeratorHello Tibor,
Thanks for reaching out. The admin team will get in touch with you shortly through the email.
Have a good day.
Peter
ModeratorHello,
It isn't possible to use 2
taxonomyfields on the same page. The last field will set the post term and override the value of other taxonomy fields.
If you want to save 2 fields designer_country and designer_country_duo, please use the taxonomy_advanced field. Following the documentation https://docs.metabox.io/fields/taxonomy-advanced/Or you can use one taxonomy field and enable multiple selections to select more terms for the post.
December 6, 2024 at 11:18 PM in reply to: Unintended auto-update crashes custom fields and causes fatal error #47119Peter
ModeratorHello Yumiko,
Please follow the articles below to disable auto update of plugins and themes on your site with code or with a third-party plugin.
https://wpengine.com/resources/disable-auto-update/
https://wordpress.org/plugins/disable-auto-updates/Peter
ModeratorHello,
If you want to show a text (value) on all products page, you can consider using the settings page. Updating only one field on the settings page and it will display on all product pages. Just like a theme option.
If you want to update a value to all fields of all products, there isn't an option to do so. Please try to use the action hookrwmb_after_save_fieldand create some custom code to update all fields.
https://docs.metabox.io/actions/rwmb-after-save-field/Peter
ModeratorHello Niki,
You can follow the Kadence documentation to get the custom field in the block setting
https://www.kadencewp.com/help-center/docs/kadence-blocks/dynamic-content-custom-input-and-showing-fields-from-all-post-types/If it is not available in the Kadence block settings, please contact Kadence support to get more information.
December 5, 2024 at 11:31 PM in reply to: ✅Issues with Geocoding address field + map field in groups #47107Peter
ModeratorHello Ambr,
Thank you for your feedback.
I see the geolocation feature doesn't work if you use the subfields in a group field. Please use the top fields to use the geolocation feature. I will informt the development team to consider supporting this case in future updates.
Peter
ModeratorHello,
You need to add the
alignattribute to the block template and create some custom CSS code to style the content with the align selection. For example:<p class="{{ align }}">{{ block_description }}</p>screenshots https://imgur.com/a/wMpKA5b
and please follow the documentation https://docs.metabox.io/extensions/mb-blocks/#render_callback
December 5, 2024 at 10:52 PM in reply to: "The above error occurred in the component" when loading a registered block #47105Peter
ModeratorHello,
If it still doesn't work on your site, please share the admin account by submitting this contact form https://metabox.io/contact/
I will take a look.December 3, 2024 at 11:04 PM in reply to: "The above error occurred in the component" when loading a registered block #47097Peter
ModeratorHello Cedric,
I use the demo code in the documentation https://docs.metabox.io/extensions/mb-blocks/ and it works properly on my site, here is the screenshot https://imgur.com/7wJpW2a
Can you try to register the block again with a simple environment: only Meta Box and extension plugins, a standard theme of WordPress (2021) activated?
Let me know how it goes.
-
AuthorPosts