Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
The extension MB Frontend Submission only supports displaying a classic submission form. You can try to use the action hook
rwmb_frontend_before_formandrwmb_frontend_after_formto add some HTML code and add your own CSS code to re-style the form.Please get more details here https://docs.metabox.io/extensions/mb-frontend-submission/#hooks-1
September 11, 2021 at 10:20 AM in reply to: Field ID not being updated, data can't be pulled, can't use MB #30706Long Nguyen
ModeratorHi,
I see the field ID
dlc_media_photos_couverturewith the field typeimage_advancedin your code above.[ 'name' => __( 'Image en couverture', 'your-text-domain' ), 'id' => $prefix . 'dlc_media_photos_couverture', 'type' => 'image_advanced', 'label_description' => __( 'Image à utiliser en couverture de la galerie', 'your-text-domain' ), 'max_file_uploads' => 1, 'required' => true, 'image_size' => 'medium', 'max_status' => false, ],It looks like the Oxygen builder does not support showing the image from the
single_imagefield value. So if you want to show the image with the field typesingle_image, you can use the component Shortcode with this helper shortcode[rwmb_meta id="single_image_fieldID" size="thumbnail"]Get more details on this documentation https://docs.metabox.io/shortcode/
Long Nguyen
ModeratorHi,
Currently, Meta Box does not have a feature Theme Code like that. You can output the field value by using the helper function
rwmb_meta(), it works simply like the functionthe_field(). Please read more here https://docs.metabox.io/displaying-fields/#using-codeMeta Box also supports generating the code that use to create the custom fields, meta boxes and CPT as well. Please read more here https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code
Long Nguyen
ModeratorHi,
Thanks. So if you remove the code in the file footer.php and the CSS/JS files won't be loaded, right? I don't think so.
Looking at this screenshot https://ibb.co/LC0hQ8R, when you use the shortcode Frontend Submission, all the CSS/JS files that the fields or the form need to use will be loaded on that page.
September 10, 2021 at 9:38 PM in reply to: Field ID not being updated, data can't be pulled, can't use MB #30696Long Nguyen
ModeratorHi,
I see the image field type is
image_advancedso you can try to use the Oxygen 3.9 Alpha 1 to test the compatibility with Meta Box. Read more on the Facebook MB Group https://www.facebook.com/groups/metaboxusers/posts/909062386378073/Use the component Gallery > click on the source Meta Box > select the field ID to show. Screenshot https://share.getcloudapp.com/Z4ujnD9G
If some fields do not show with Oxygen, you can send your feedback to the Oxygen developer team to fix the issue.
Long Nguyen
ModeratorHi,
Thank you for your feedback.
I've escalated this issue to the development team to fix it in the next update.
Long Nguyen
ModeratorHi,
You need to pass the
timestampvalue type to the second argument of the function date_i18n(). Set'timestamp' => truewhen registering the date field.Get more details here https://docs.metabox.io/fields/date/#settings
September 10, 2021 at 12:39 PM in reply to: ✅Conditional Logic doesn't work inside group field #30690Long Nguyen
ModeratorHi,
The normal operators
=or!=also work with your case. Use the operatorcontainswhen you set the setting'multiple' => true,to select multiple options.array( 'id' => 'brand', 'name' => 'Brand', 'desc' => 'Pick Your Favourite Brand', 'type' => 'select', 'options' => array( 'Apple' => 'Apple', 'Google' => 'Google', 'Microsoft' => 'Microsoft' ), 'multiple' => true, ),Long Nguyen
ModeratorHi,
Can you please share a sharper screenshot? I do not see the URL on the last image. FYI, the extension MB Blocks does not require loading any CSS and JS files on the frontend. It might come from another plugin, the theme, or WordPress itself.
September 9, 2021 at 10:45 PM in reply to: Field ID not being updated, data can't be pulled, can't use MB #30684Long Nguyen
ModeratorHi,
Can you please share the code that creates the field
single_image? If you are using the Builder, please refer to this documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-codeLong Nguyen
ModeratorHi,
The subfield has the ID
groupID_subfieldID, you should indicate it in the condition like this'hidden' => array( 'test_group_brand', '!=', 'Apple' )Refer to this topic https://support.metabox.io/topic/conditional-logic-does-not-work/
September 9, 2021 at 9:11 AM in reply to: Field ID not being updated, data can't be pulled, can't use MB #30675Long Nguyen
ModeratorHi AnLip,
Thank you for reaching out.
I think this is a basic question. WordPress saves the custom fields in the table
wp_postmetaas a pair ofmeta_keyandmeta_value. But it does not support an option to delete the pair when you do not use it. It is still available on the database as well. So after you change the field ID which is themeta_key, the old field ID can be still retrieved in the builder.And there is no option to update the old value to the new field ID, you have to update the new field ID manually because it will be saved in the database as a new pair
meta_key/meta_value.You can also follow this series for more information about custom fields https://metabox.io/how-wordpress-stores-custom-fields-database/
Long Nguyen
ModeratorHi,
The helper function will return a raw value so you need to wrap it in a
<a>tag to make it clickable. To get the field value, please read more here https://docs.metabox.io/displaying-fields/Long Nguyen
ModeratorHi Mark,
To show the URL, email, phone field value in a button, you need to assign it to the attribute
hrefof the<a>tag to make it clickable. Just like<a href="<?php echo rwmb_meta( 'field_url_id' ) ?>">Button Link</a> <a href="tel:<?php echo rwmb_meta( 'field_phone_id' ) ?>">Call me</a> <a href="mailto:<?php echo rwmb_meta( 'field_email_id' ) ?>">Email me</a>Long Nguyen
ModeratorHi Fede,
Thank you for your feedback.
The remote validation does not look works with the Frontend Submission extension. You can try to use the Frontend Validation to validate the field value. Please get more details on this solution https://docs.metabox.io/extensions/mb-frontend-submission/#validation
-
AuthorPosts