Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Yes, only the necessary CSS, JS files are loaded along with the form and the required field. You can check on the page without the form or remove some fields to see the script files loaded.
Long Nguyen
ModeratorHi,
It's not possible to add default values for the fieldset text. You can try to create two fields
textin a group to set the default value and make them cloneable.July 6, 2021 at 10:39 PM in reply to: ✅Cloning a Gutenberg block group containing custom RWMB_Field #29340Long Nguyen
ModeratorHi,
Thank you for your feedback.
We've written a note about the cloneable custom field type on the documentation before, please find it here https://docs.metabox.io/custom-field-type/#notes
Long Nguyen
ModeratorHi Nicholas,
I recommend using a third-party plugin such as Autoptimize, WP Rocket to combine CSS, JS into one file. It's very complicated to create your own function and start from scratch.
Long Nguyen
ModeratorHi,
You can use the attribute
password_strengthand set it tofalseto disable password strength[mb_user_profile_info id="rwmb-user-info" password_strength="false"]See the settings here https://docs.metabox.io/extensions/mb-user-profile/#registration-form
Long Nguyen
ModeratorHi,
Thanks for your additional information.
Can you please export the field group of the ACF or share the generated PHP code when exporting? I will try to import that field group to my site and migrate data to reproduce the issue.
And please share some screenshots/screen record in your database, table wp_postmeta, meta key: field ID before updating the post. It looks like the meta value (field value) is not really empty.
Or change the condition to
if ( !empty ( $post_id ) ) { ... }Long Nguyen
ModeratorHi Smiffy,
It's not possible to use more frontend submit forms on a page. A field will have the same ID in other forms so it will submit one value for a field in all forms.
I think you can use a cloneable field child name (type text) then create posts based on the field value after submitting a form. Please read more on the documentations
https://docs.metabox.io/extensions/mb-frontend-submission/#form-actions
https://developer.wordpress.org/reference/functions/wp_insert_post/Long Nguyen
ModeratorHi Cees,
There is no sample to build an event calendar with Meta Box. But instead of build everything from scratch, you can use a third-party event calendar plugin such as
https://wordpress.org/plugins/the-events-calendar/
https://wordpress.org/plugins/modern-events-calendar-lite/Long Nguyen
ModeratorHi,
Yes, the settings are not applied to the shortcode. If you want to add more attributes to the shortcode, please follow the documentation https://docs.metabox.io/mb-favorite-posts/#shortcodes
Refer to this topic https://support.metabox.io/topic/2-0-caused-the-loss-of-all-text/
Long Nguyen
ModeratorHi Laurent,
The prepend and append text only support adding text instead of HTML tags so if you want to allow the user to add the video ID to the field text, please just use URL text as the prepend
https://www.youtube.com/watch?v=Then on the frontend, you can concatenate the prepend URL with the field value.
<?php $video_id = rwmb_meta( 'field_text_id' ); echo '<div class="amara-embed" data-url="https://www.youtube.com/watch?v='. $video_id .'" data-hide-logo="true" data-show-transcript-default="true" data-initial-language="en" data-hide-order="true" data-hide-subtitle-me="true" data-hide-improve="true" data-hide-order="true" data-hide-download="true" data-hide-embed="true" data-team="null"></div>';July 6, 2021 at 6:03 AM in reply to: ✅The subfields first_name and last_name cannot be saved. #29316Long Nguyen
ModeratorHi Yumikom,
If you want to register/edit the default fields of users on the frontend, please register them as the top fields, not subfields. The default field IDs seem to not work in a group, I will inform the development team to re-check it.
Please get more details here https://docs.metabox.io/extensions/mb-user-profile/#edit-default-fields
Long Nguyen
ModeratorHi Peter,
Please update this solution to the new version 2.0.1 and re-check this issue.
Long Nguyen
ModeratorHi,
It's the HTML5 validation (client-side validation) and you will get the default message like that. For now, use JavaScript is the only way to translate the error message. You can get more information on this topic https://wordpress.org/support/topic/translation-of-form-error-messages/
and the documentation https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validationLong Nguyen
ModeratorHi Laurent,
Thank you for getting in touch.
1, 2. The oEmbed field supports adding the URL and showing the media on the frontend with the list accepted site. Please read more here https://wordpress.org/support/article/embeds/
If you want to add the HTML code, I recommend using the field WYSIWYG.
3, 4. Field type URL is the HTML input type URL, you can read more here to add the valid URL https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/url
If you want to add the text
[singer]/[song-name]to the field, I recommend using the field text.Long Nguyen
ModeratorHi Yumikom,
You can create a function to execute the shortcode and add the function name to the callback option of the field custom_html. For example:
function foobar_func( $atts ){ return "foo and bar"; } add_shortcode( 'foobar', 'foobar_func' ); function show_shortcode() { echo do_shortcode('[foobar]'); }Screenshot https://share.getcloudapp.com/9ZudygdW
-
AuthorPosts