Forum Replies Created
-
AuthorPosts
-
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.
January 5, 2023 at 7:43 PM in reply to: ✅Predefined Values for Textareas / HTML-Code for Textfield #40130Peter
ModeratorHello there,
1. Do you mean to add the default value for the textarea field? Please read more on the documentation https://docs.metabox.io/field-settings/
2. To add the HTML tag to the text field, please bypass the sanitization. Read more on the documentation https://docs.metabox.io/sanitization/
3. Thanks for your feedback. I've escalated this issue to the development team to fix it in the next update.
January 5, 2023 at 7:28 PM in reply to: ✅Shortcodes (from other plugins) not rendering in Metabox fields #40129Peter
ModeratorHello,
Yes, if you use the textarea field and add the shortcode, you need to bypass the sanitization to save the value. Then you can render the shortcode as well as WYSIWYG field.
Please read more on the documentation https://docs.metabox.io/sanitization/
Peter
ModeratorHi,
Thanks for your feedback.
I will inform the development team to consider creating a template for the confirmation page then you can override it as well.
Peter
ModeratorHello,
I've created a feature request for the development team. They will consider supporting this in future updates and I will inform you when I have any information.
January 4, 2023 at 11:52 PM in reply to: ✅Insert connected post title for current item in a Query Loop #40121Peter
ModeratorHello,
I'm afraid that this case is beyond our scope of support. We do not support customization for your specific needs. If you have a compatibility case with another plugin, please contact them to get further assistance. Or you can request a custom development here https://metabox.io/contact/
Please read more about the support policy here https://support.metabox.io/topic/support-policy/
Peter
ModeratorHello there,
If you have a Brand CPT and Retailer taxonomy assigned to this Brand, then you don't need to use the MB Relationships extension because they have the standard relation of WordPress. MB Relationships helps you to create a relation between two objects that do not have a standard relation. For example: a relation between two CPTs (Brand and Post), two taxonomy (category and tag) ...
Hope that makes sense.
-
AuthorPosts