Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Thanks, I see that issue. I've escalated it to the development team to fix it in the next update.
Long Nguyen
ModeratorHi Ole,
Meta Box does not support populating prepend text from another field value/label. I think you can create some JavaScript code to do that.
December 7, 2021 at 8:29 PM in reply to: Please can you help me with a loop through sub_fields #32481Long Nguyen
ModeratorHi,
You can put the function
print_r()in theforeachloop to print each item to see what the value is.I see there are two arrays, so you need to use two
foreachloops.Long Nguyen
ModeratorHi,
Thanks for reaching out.
What the sub-services are? If they are posts, I think there are two ways you can do:
Create 1 post typeservice.-
EnvironmentalandGround Workare taxonomies of the post typeservice. Create postssub-servicesand assign each one to a taxonomy/term. -
EnvironmentalandGround Workare parent posts,sub-servicesare child posts. You can assign each one to a parent post.
Long Nguyen
ModeratorHi Nic,
Can you please share the code that creates custom fields on your site? I will re-check it on my site.
December 7, 2021 at 10:09 AM in reply to: ✅MB Setting Page param are not rendered in MB views #32471Long Nguyen
ModeratorHi,
I think the setting
option_nameis missed on your settings page. Please check this documentation https://docs.metabox.io/extensions/mb-settings-page/#using-meta-box-builderThe generated PHP code should be
add_filter( 'mb_settings_pages', 'your_prefix_function_name' ); function your_prefix_function_name( $settings_pages ) { $settings_pages[] = [ 'menu_title' => __( 'Infos Maman Blues', 'your-text-domain' ), 'position' => 2, 'capability' => 'edit_posts', 'icon_url' => 'dashicons-admin-generic', 'id' => 'param-maman-blues', 'option_name' => 'param-maman-blues', ]; return $settings_pages; }Long Nguyen
ModeratorThanks for the feedback.
I will inform the development team to create a tooltip for the select field.
December 6, 2021 at 11:17 PM in reply to: ✅Required condition in the fields - filter to enable save draft #32460Long Nguyen
ModeratorHi,
Unfortunately, there is no hook to bypass the condition to save the post as a draft. The validation works by JavaScript code or browser filter so it will prevent sending data to the server to save the post.
December 6, 2021 at 11:11 PM in reply to: ✅MB Setting Page param are not rendered in MB views #32459Long Nguyen
ModeratorHi,
Can you please share the code that creates the settings page, custom fields, and some screenshots of your View area?
Long Nguyen
ModeratorHi,
By default, the builder only supports showing the latest 10 items in the select box. You can try to create a new Chinese page and re-check this issue. Or type the page title to search the Chinese pages.
December 6, 2021 at 12:39 PM in reply to: ✅Time field "Done" button doesn't update field if slider/select not moved #32449Long Nguyen
ModeratorHi Stephen,
You can try to set the default value of a field
stdto save this value without selecting the time. Like this'fields' => [ [ 'name' => __( 'Time', 'your-text-domain' ), 'id' => $prefix . 'time', 'type' => 'time', 'std' => '00:00', 'js_options' => [ 'hour' => 00, 'minute' => 00, ], ], ],December 6, 2021 at 12:28 PM in reply to: ✅Creating a custom field with value from other custom fields #32448Long Nguyen
ModeratorHi,
In the backend, you can try to use the variable
$post_idto pass the post ID to the functionget_the_terms()add_action( 'rwmb_after_save_post', function( $post_id ) { $terms = get_the_terms( $post_id, 'artists' ); ... } );Long Nguyen
ModeratorHi,
It's not possible to use width, height, and zoom parameters when using Beaver Themer. But I think you can just change the width and height of the column to show the map. It will display adapt to the column.
December 5, 2021 at 3:39 PM in reply to: ✅Time field "Done" button doesn't update field if slider/select not moved #32436Long Nguyen
ModeratorHi,
The default value of the timepicker field is not populated. You need to select at least one box (hour or minute) to populate the time.
I will inform the development team to consider fixing this issue in future updates.
Long Nguyen
ModeratorHi,
I'm not able to reproduce this issue on my end. Screen record https://www.loom.com/share/c34bf6a6bb9546bdbc8f0d66c31aefc6
Can you please try to do that and take a screen record of this issue?
-
-
AuthorPosts