Forum Replies Created
-
AuthorPosts
-
January 9, 2023 at 11:15 PM in reply to: ✅Warnings in frontend if Switch is off or text field is empty in cloneable group #40169
Peter
ModeratorHello,
Actually, the empty value of a subfield will not be saved to the database. That's why you see the warning because there is no key (field ID) in the group if the value is empty. To fix this issue, please check the key is existed before assigning it to a variable. For example:
if( array_key_exists( 'gara_contvar_btntxt', $value ) ) { $btn_txt = $value['gara_contvar_btntxt']; }January 9, 2023 at 11:02 PM in reply to: ✅Added new text field and cannot display in Elementor post template #40168Peter
ModeratorHello,
I do not see you add a value for the modal field in a specific post. Can you please save the template and check it on a single post page which you add a modal field value?
Peter
ModeratorHello there,
Please share your site credentials and some screenshots of the issue via the contact form https://metabox.io/contact/
I will help you to troubleshoot the issue.Regarding the user name and email in the support forum, you can go to the My Account page and edit your profile, kindly check this link https://metabox.io/my-account/edit-profile/
January 9, 2023 at 10:50 PM in reply to: ✅Custom field : Taxonomy - Add new term with auto add Term Meta = Current User ID #40166Peter
ModeratorHello there,
1. Supporting a customization code for your specific needs is beyond our scope of support. Please read more here https://support.metabox.io/topic/support-policy/
I think you can use the action hookrwmb_after_save_postorrwmb_after_save_fieldto add your callback function to update the term meta.
https://docs.metabox.io/actions/rwmb-after-save-field/
https://docs.metabox.io/actions/rwmb-after-save-post/2. Please use the setting
query_argsto filter taxonomy by meta value. Please read more on the documentation https://docs.metabox.io/fields/taxonomy/Peter
ModeratorHello Michele,
Thanks for your feedback.
I do not see that issue on my demo site. Please make sure that you have the latest version of Meta Box and other MB extensions, you can check the last version on My Account page https://metabox.io/my-account/.
If the issue persists, please try to deactivate all plugins and leave Meta Box, MB extensions activate and switch to a standard theme of WordPress then check the issue again.Let me know how it goes.
Peter
ModeratorHello Dan,
Can you please export the field group to a JSON file and share it here? And please share some screenshots when you add the block in the admin area, I will test the code on my local site.
Please read more on the documentation to know how to export a field group https://docs.metabox.io/extensions/meta-box-builder/#export--import
Peter
ModeratorHello there,
It's not a possibility of Twig, it's how you create your conditional code to output the value. I add the code below for example.
{% for item in post.vod_honor_type_tax %} {% if item.name == 'somthing' %} <h4 class="honor-type">{{ item.name }}</h4> <h1 class="honoree-name">{{ post.vod_honoree_names }}</h1> <h4 class="class-of">class of {{ post.vod_class_of_tax.name }}</h4> {% else %} something if false {% endif %} {% endfor %}To understand how to use Twig, please read more on the documentation https://docs.metabox.io/extensions/mb-views/#twig
Peter
ModeratorHello Jeremy,
The field type custom_html does not save the field value so it does not work in your case. I think you can create a custom field type to accomplish the task. Please read more on the documentation
https://docs.metabox.io/creating-new-field-types/January 7, 2023 at 5:50 PM in reply to: ✅Radio and Switch fields always reporting first choice value in Title Group #40151Peter
ModeratorHello Luca,
Thank you for your feedback.
I've escalated this issue to the development team to fix it in the next update. Let me know if you have any questions.
Peter
ModeratorHello,
You are in the loop to get the post. So you need to get the author of the post first and then get the meta of the author. Please check this WordPress function
https://developer.wordpress.org/reference/functions/get_the_author/January 6, 2023 at 11:19 PM in reply to: ✅Predefined Values for Textareas / HTML-Code for Textfield #40144Peter
ModeratorHello,
Thanks for clarifying it. The setting
datalist(Predefined values) is only supported for the text field. It means nothing to support this setting for thetextareafield where you need to add more texts to the area.Peter
ModeratorHello Dan,
In case of using Oxygen Builder, please reach out to them if you have any issues with installation, configuration, compatibility, or usage.
Refer to our support policy https://metabox.io/support/topic/support-policy/January 6, 2023 at 11:12 PM in reply to: ✅image upload with default UI - No file preview in mb_frontend_form #40142Peter
ModeratorHello Leo,
Yes, it is expected behavior. The thumbnail will display after you submit the post successfully which means after the post is saved. Before that, it works like a field
filewithout previewing.January 5, 2023 at 8:49 PM in reply to: ✅taxonomy_advanced for settings does not save data any more #40133Peter
ModeratorHello Marius,
This issue has been fix in the commit https://github.com/wpmetabox/meta-box/commit/d18fe9a84d29fab1b66a5454b19b05c8c7cc380d
You can apply the changes on your site while waiting for the new update.January 5, 2023 at 8:46 PM in reply to: ✅Insert connected post title for current item in a Query Loop #40132Peter
ModeratorHello,
The function MB_Relationships_API::get_connected() returns an array, you have to use the return value as an array, not a string.
I recommend contacting an expert developer WordPress to help you accomplish the task. Without a basic knowledge of coding, you might use the wrong code and break your site later.
Thanks for your understanding and patience.
-
AuthorPosts