Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello there,
Do you mean to add a menu of a custom post type under a menu of the settings page? If yes, it is possible. Please edit the post type in Meta Box > Post Types > Edit a post type > Advanced tab > Show in menu: Show as sub-menu of a settings page. Please check this screenshot https://monosnap.com/file/zzv4E5nAgSoRpltCDUbiBxHqbws83T
January 10, 2023 at 11:01 PM in reply to: ✅Setting a custom field in both settings and custom post type #40188Peter
ModeratorHello there,
I think it is possible but it would need to create some custom code to do that. If you are familiar with coding can follow the suggestion below to create the code on your own.
- create a callback function and hook to the actionmb_settings_page_load
- query to get posts of post type menu and update the field value by using the function update_post_meta()Please read more on the documentation
https://docs.metabox.io/extensions/mb-settings-page/#hooks
https://developer.wordpress.org/reference/functions/update_post_meta/If not, you can create a customization service here https://metabox.io/contact/, our development team will help you with an extra fee.
January 10, 2023 at 10:44 PM in reply to: ℹ️Save field value => Generate PHP Code not see the code for that #40186Peter
ModeratorHello,
Thanks for your feedback.
I also experience that issue on my demo site. I've escalated this issue to the development team to fix it in the next update.
Peter
ModeratorHello Jacob,
The file class-mb-relationships-facetwp.php is not available in the last version of Meta Box AIO 1.16.10. It is updated in a new commit but is still not released. How did you have this file on your site? Do you activate a single plugin Meta Box FacetWP Integrator with Meta Box AIO?
January 10, 2023 at 10:14 PM in reply to: ✅Added new text field and cannot display in Elementor post template #40183Peter
ModeratorGreat.
Let me know if you have any questions.January 10, 2023 at 10:12 PM in reply to: ✅Schema or Rich Snippets added to Tags and Categories? #40182Peter
ModeratorHello Charlie,
Meta Box does not support adding rich snippets to any page on your site, it just helps you to create custom fields in the backend and output the field value on the frontend. You can try to use a third-party SEO plugin like Yoast, RankMath to add rich snippets to pages on your site.
Peter
ModeratorHello,
If this code output the honor type term name correctly
<h4 class="honor-type">{{ post.vod_honor_type_tax.name }}</h4>then I think you don't need to use the loop to check the term name.
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 #40169Peter
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/ -
AuthorPosts