Forum Replies Created
-
AuthorPosts
-
July 22, 2021 at 8:03 AM in reply to: looking for best practice: different field groups for one cpt #29626
Long Nguyen
ModeratorHi Ole,
You can use conditional logic to show/hide a meta box when selecting a taxonomy as well. Read more the documentation https://docs.metabox.io/extensions/meta-box-conditional-logic/#using-with-taxonomies
Here is an example
$meta_boxes[] = [ 'title' => __( 'My Meta Box', 'your-text-domain' ), 'id' => 'my-meta-box', 'post_types' => ['test'], 'visible' => [ 'when' => [['tax_input[your_taxonomy_slug]', 'in', [225] ]], // 225 is the term ID 'relation' => 'or', ], 'fields' => [ ... ], ];July 21, 2021 at 10:05 PM in reply to: looking for best practice: different field groups for one cpt #29620Long Nguyen
ModeratorHi Ole,
Please refer to this topic https://support.metabox.io/topic/adding-field-group-for-woocommerce-category/
to know how to assign a field group (meta box) for a/some specific categories.Long Nguyen
ModeratorHi Eugene,
Please try to use the option
Custom rewrite slugto change the archive slug. Screenshot https://imgur.com/vx4cQjW.Let me know how it goes.
Long Nguyen
ModeratorHi Moga,
You can use the function
rwmb_set_meta()to set the field value for the fieldimage_advanced. Get more details on the documentation
https://docs.metabox.io/rwmb-set-meta/
https://docs.metabox.io/fields/image-advanced/#dataLong Nguyen
ModeratorHi Jesper,
Thank you for getting in touch.
When purchasing the new license, do you use the email of the old account? If not, our system will treat them as two separate accounts and it is possible that you are still using the old license.
July 21, 2021 at 6:42 PM in reply to: ✅Bug: generated PHP code does not include choices callback #29611Long 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,
Because the helper function
rwmb_meta()runs after the filter hookrwmb_meta_boxesso it does not work with the callback function. You can use the function get_option() to get settings page value inside the function callback.Refer to this topic https://support.metabox.io/topic/code-not-working-with-updated-version/
Long Nguyen
ModeratorHi,
Thank you for your feedback.
I've escalated this issue to the development team to fix it in the next update.
July 20, 2021 at 10:41 PM in reply to: ✅Using Gravity Forms and Metabox for simple event bookings #29599Long Nguyen
ModeratorHi,
This topic might help you to accomplish the case https://support.metabox.io/topic/gravity-forms-submissions-not-updating-user-meta/
Using the addon GF User Registration.
Long Nguyen
ModeratorHi Luigi,
You can click on the tab Settings (next to Fields) and select Alignment options, screenshot https://share.getcloudapp.com/X6uAPJg6
Long Nguyen
ModeratorHi,
Currently, the extension MB Term Meta only supports showing the field on all terms of the taxonomy. I will create a feature request to support showing the field on specific terms, just like
'terms' => array( termID, or termSlug ).You can try to create a condition before registering the meta box by coding. For example
add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' ); function your_prefix_function_name( $meta_boxes ) { $prefix = ''; if( !is_admin() ) return; $list_product_cat = array(16, 18); // list of product category IDs if( $_GET['taxonomy'] == 'product_cat' && in_array( $_GET['tag_ID'], $list_product_cat ) ) { $meta_boxes[] = [ 'title' => __( 'Term Meta', 'your-text-domain' ), 'id' => 'term-meta1', 'taxonomies' => ['product_cat'], 'fields' => [ [ 'name' => __( 'Text', 'your-text-domain' ), 'id' => $prefix . 'text_opthfz8evwb', 'type' => 'text', ], ], ]; } return $meta_boxes; }Hope that makes sense.
July 20, 2021 at 9:02 AM in reply to: Creating a simple Meta Box and trying to use the shortcode generates save error #29591Long Nguyen
ModeratorHi Jim,
It might be a caching issue. I didn't see any issue with the frontend submit shortcode on your site
[mb_frontend_form id="attendee_group" post_fields="title,content" post_type="attendee"]Screenshot https://imgur.com/L7Y9kmR
July 19, 2021 at 9:05 PM in reply to: Creating a simple Meta Box and trying to use the shortcode generates save error #29587Long Nguyen
Moderator@Ole: Please follow this topic https://support.metabox.io/topic/fatal-error-after-last-update/ or create a new one. Your issue looks unrelated to the issue of Jim.
@Jim: Can you please resend it? I've not received your ticket.July 19, 2021 at 1:55 PM in reply to: Creating a simple Meta Box and trying to use the shortcode generates save error #29574Long Nguyen
ModeratorHi Jim,
Please share your site credentials via this contact form https://metabox.io/contact/, I will help you to check the issue.
Long Nguyen
ModeratorHi,
Meta Box does not support removing the CPT slug from the URL. These topics might help you to do that
https://wordpress.stackexchange.com/questions/203951/remove-slug-from-custom-post-type-post-urls
https://wordpress.org/support/topic/removing-slug-in-url-from-custom-post-type/ -
AuthorPosts