Forum Replies Created
-
AuthorPosts
-
February 15, 2022 at 11:24 AM in reply to: Validation does not work with rwmb_normalize_field #33903
Long Nguyen
ModeratorHi,
jQuery validation is used under meta box settings, please read more here
https://docs.metabox.io/validation/#using-code-1then you can use the meta box normalize filter to modify meta box settings https://docs.metabox.io/filters/#rwmb_normalize_meta_box
If you want to use the HTML5 attribute for the field, just use the key
minlengthadd_filter( 'rwmb_normalize_designation_field', function( $field ) { $field['minlength'] = 20; return $field; });Long Nguyen
ModeratorHi Eddy,
There are some ways to add icons to your site. Using the fontawesome is one of them. Please read more on this document https://fontawesome.com/v5/docs/web/use-with/wordpress/add-icons
February 14, 2022 at 4:37 PM in reply to: ✅How to translate custom field labels for different admin users languages ? #33891Long Nguyen
ModeratorHi,
You can add the code that creat the custom field to the theme, change the text-domain to theme's text-domain. Then edit the file template POT in Loco Translate, sync with the new scan to translate the field name. Here is an example:
$meta_boxes[] = [ 'title' => __( 'User meta 2', 'estar' ), 'id' => 'user-meta-2', 'type' => 'user', 'fields' => [ [ 'name' => __( 'Text123', 'estar' ), 'id' => $prefix . 'text_ay5g5lcx88c', 'type' => 'text', ], ], ];February 14, 2022 at 2:37 PM in reply to: ✅How to rearrange the order of field groups on profile page? #33887Long Nguyen
ModeratorHi AJ,
Meta Box does not support re-arranging meta boxes on the user profile page. With MB Builder, you can change the publish date, with coding, you can change move the registered meta box up/down to re-arrange them.
Long Nguyen
ModeratorHi Kirb,
The
groupfield is a cloneable group, you need to create a for loop to iterate through the array of items. Or access a specific group item via the key. Like this$ws_getprice_container_type_group = empty( $group = $_POST['ws_getprice_container_type_group'] ) ? null : $_POST['ws_getprice_container_type_group']; // access group item via the array key $ws_getprice_container_type_select = $group[0]['ws_getprice_container_type_select']; // or use the loop foreach ( $group as $group_item ) { echo $group_item['ws_getprice_container_type_select']; }Long Nguyen
ModeratorHi,
The Frontend Submission form does not support generating a new post ID before you submit a new post like on the backend. So it is not possible to preview a new post.
You can preview a post after having the post ID, please follow this documentation https://developer.wordpress.org/reference/functions/get_preview_post_link/
Long Nguyen
ModeratorHi,
If it returns the post ID (number), you can use WordPress functions to get the post title and permalink
https://developer.wordpress.org/reference/functions/get_the_title/
https://developer.wordpress.org/reference/functions/get_the_permalink/Or follow this documentation to use the WP Query to show related posts with title and link
https://docs.metabox.io/extensions/mb-relationships/#postsLong Nguyen
ModeratorHi,
You can purchase a new personal lifetime bundle license and I will refund the previous license for you.
Long Nguyen
ModeratorHi,
Yes, please follow this documentation to use MB Rankmath in the builder https://docs.metabox.io/extensions/mb-rank-math/
Long Nguyen
ModeratorHi,
Please follow this article to increase the PHP setting
max_input_varsto resolve the issue
https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/Let me know if it helped.
Long Nguyen
ModeratorHi,
If you want to use one role subscriber, just use the argument
role, like thisfunction your_prefix_function_name() { MB_Relationships_API::register( [ 'id' => 'user-to-post', 'from' => [ 'object_type' => 'user', 'field' => [ 'query_args' => [ 'role' => 'subscriber' ], ], ], 'to' => 'post', ] ); }Long Nguyen
ModeratorHi Kirb,
Can you please share the code that creates custom fields on your site? I will help you to check the issue.
February 12, 2022 at 2:41 PM in reply to: Blank space when inserting custom fields via Elementors dynamic tags #33862Long Nguyen
ModeratorHi Thomas,
I see you use the widget Posts of Elementor to show post type FAQ on a page as well. The problem is the page does not have any custom fields so you cannot show the custom field associated with FAQ post type in a page with Elementor.
Long Nguyen
ModeratorHi,
I do not see any issue when running your code on my demo site. Please try to deactivate all plugins except Meta Box, MB extensions and switch to the standard theme of WordPress (Twenty) then re-check the issue.
Long Nguyen
ModeratorHi,
Meta Box does not support selecting options on the frontend like WooCommerce or LearnPress to sell the product. You can contact LearnPress support to ask for help with this case.
-
AuthorPosts