Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
There isn't a default field for the parent term of the current term. You can use some WordPress functions to get the parent term name and permalink. For example:
{% set current_term = mb.get_term_by( 'id', term.id, 'category' ) %} {% set parent_term = mb.get_term_by( 'id', current_term.parent, 'category' ) %} Parent term name: {{ parent_term.name }} <br> Parent term permalink: {{ mb.get_term_link( parent_term, 'category' ) }}Please read more in the documentation
https://docs.metabox.io/extensions/mb-views/#running-php-functions
https://developer.wordpress.org/reference/functions/get_term_by/
https://developer.wordpress.org/reference/functions/get_term_link/Peter
ModeratorHello,
You can create a custom query to get the total posts of a post type and follow the documentation to show this on a WordPress dashboard widget.
https://developer.wordpress.org/apis/dashboard-widgets/
https://developer.wordpress.org/reference/classes/wp_query/Peter
ModeratorHello,
I think it is expected. You are using the cloneable and the next clone field should display in the same column. You can set 12 columns (default) to display the field.
Peter
ModeratorHello,
You should add the column ID instead of the column title to display the admin column, it should be
product_cat, notCategories. Screenshot https://imgur.com/ep6eNHaRegarding the default
_idfield, it is a hidden-standard custom field of the field group when using the builder. We shouldn't touch this field or get rid of it.August 27, 2023 at 4:41 PM in reply to: Warning: The following meta box are not available: "dealer_registration". #43045Peter
ModeratorHello,
The form must be added somewhere on your site so it displays in the frontend, maybe a custom code or Kadence block. You can try to deactivate all plugins except Meta Box, MB extension plugins and switch to a standard theme of WordPress and check this issue again.
Peter
ModeratorHello,
You are right, the WP admin bar affected the position of the select box. I've escalated this issue to the development team to fix it in the next update.
Peter
ModeratorHello Andrew,
I don't see that issue on my demo site, screenshot https://imgur.com/pwN5ePG
You can export the field group to a JSON file and share it here. I will help you to check the issue.And please note that, the filterable feature only works with the
taxonomyfield. Read more in the documentation https://docs.metabox.io/extensions/mb-admin-columns/Peter
ModeratorHello,
Thanks for your feedback.
Currently, the builder does not support creating the custom model or assigning the field group to the model. I will inform the development team to consider supporting this feature in future updates.
Peter
ModeratorHello,
You can use the view Type: Code then add the conditional tag to the Code area to check if it is the parent term. For example:
Add this code to the file functions.php in the theme/child theme folder
function check_parent_category() { $current_term_id = get_queried_object_id(); $check_term = get_term( $current_term_id ); if ( $check_term->parent == 0 ) return true; // parent term - display the view template return false; // child term }then add the function name
check_parent_category()to the Code area. Screenshot https://imgur.com/407g1UwRefer to the documentation
https://developer.wordpress.org/reference/classes/wp_term/
https://docs.metabox.io/extensions/mb-views/#typeAugust 23, 2023 at 9:46 PM in reply to: Translate MetaBox Custom Post Type Name and Slug via Polylang #43020Peter
ModeratorHello,
Meta Box Custom Post Types helps you to register the post type with UI instead of using the code to register https://developer.wordpress.org/reference/functions/register_post_type/
I'm not sure how to translate the slug with Polylang, you may try to register the post type with code to see if it works. Or use another translation plugin like WPML to translate the slug.
August 23, 2023 at 9:40 PM in reply to: Warning: The following meta box are not available: "dealer_registration". #43019Peter
ModeratorHello,
It looks like you are adding the meta box (field group) ID "dealer_registration" to an MB User Profile form and the field group is not available or assigned to the User type.
August 23, 2023 at 9:23 PM in reply to: ✅Settings Pages In Customiser Error after last update and other issues #43018Peter
ModeratorHello,
1. The HTML ID "tmpl-rwmb-media-button" is located in the file wp-content/plugins/meta-box/inc/templates/media.php line 47. Please download a fresh copy of Meta Box plugin, install it on your site and recheck this issue.
You can see the code here https://github.com/wpmetabox/meta-box/blob/master/inc/templates/media.php#L47-L492. Deprecated: Automatic conversion of false to array is deprecated
It looks occurs with PHP version 8.1. I'm escalating this issue to the development team to fix it. Thanks.
3. It won't even let me assign the fields to my custom post type - it keep defaulting to 'post'.
Please try to increase the PHP setting
max_input_varsand see if it helps. Read more about the PHP setting in the documentation https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/August 23, 2023 at 9:07 PM in reply to: ✅Feature request: Confirmation, lost password, etc email templates #43017Peter
ModeratorHello Ville,
Currently, MB User Profile supports 2 email templates: confirmation after registration and reset password. You can override the template by following the documentation https://docs.metabox.io/extensions/mb-user-profile/#email-templates
Peter
ModeratorHello,
>> Can I do this without additional plugin? I bought MB Group.
Yes, it is possible. You can use the code to output the field value and add the specific post/page ID to the third parameter.
rwmb_meta( 'custom_field_id', '', 123 );
where 123 is the post ID. Read more in the documentation https://docs.metabox.io/functions/rwmb-meta/>> how can I hide some fields from some pages?
You can use the plugin MB Conditional Logic to hide some fields on some pages by page ID. Read more in the documentation https://docs.metabox.io/extensions/meta-box-conditional-logic/#toggle-by-other-elements
August 21, 2023 at 10:32 PM in reply to: Condition all of a sudden not working for a single cloneable group #42995Peter
ModeratorHello,
Following the documentation https://docs.metabox.io/extensions/meta-box-conditional-logic/#using-with-group
if the first group field Content Group is a cloneable field, the conditional logic will run inside the clone and its subfields, search for a similar ID and apply the logic.
To fix the issue, you can try to use another field ID for the subfield in thegroup_titlesfield (not including "mode"). -
AuthorPosts