Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
It might relate to the charset settings on your server. You can follow these topics to fix this issue
https://stackoverflow.com/questions/34493525/wordpress-character-encoding-issue-when-editing-posts
https://wordpress.stackexchange.com/questions/11247/character-encoding-issue-after-changing-serversLong Nguyen
ModeratorHi,
Do you mean to create custom blocks with block fields (inputs) and save the block fields data as the custom fields in the table wp_postmeta?
Please follow the documentation
https://metabox.io/plugins/mb-blocks/
https://docs.metabox.io/extensions/mb-blocks/#storage_typeJuly 14, 2021 at 11:59 PM in reply to: Media custom fields data not persisted in custom tables #29516Long Nguyen
ModeratorHi,
Thanks for the additional information.
I got it. The
media_modalsetting does not work with the custom table. Please remove it to save the media field value in the custom table. I will inform the development team to fix this issue in future updates.Long Nguyen
ModeratorHi Tobias,
Use JavaScript code to get the subfield value in a group to calculate is very complicated. The subfield in a group will have an ID like
groupID_subfieldID, does not the same as the sample code above. This screen record is an example https://www.loom.com/share/3ec2a43e6dc24cc8ba5e86474d17965dThen you will need to create more code if the group field is cloneable. You can contact us here https://metabox.io/contact/ to create a service request for this case. I will assign it to the developer team, they will estimate the job and get back to you with a quote.
Long Nguyen
ModeratorHi,
Please refer to this topic to hide Meta Box menu from the dashboard for non-admin users https://support.metabox.io/topic/hiding-meta-box-plugin-from-wordpress-dashboard-menu-for-non-admins/
Long Nguyen
ModeratorHi,
The builder helps you to create meta boxes and custom fields with the default settings. If you want to add the dynamic value or advanced cases, you have to use the code.
FYI, the function
get_current_user_id()is a WordPress function, please find it here https://developer.wordpress.org/reference/functions/get_current_user_id/July 14, 2021 at 10:59 PM in reply to: post_title and post_content empty after editing post with MB front end form #29512Long Nguyen
ModeratorHi,
Thanks for your feedback.
Currently, if you do not add the post fields, they will be saved as empty values. I will inform the development team to fix this issue in the next update.
Long Nguyen
ModeratorThe option is added in the new version of MB Relationships 1.10.6 and MB AIO 1.14.1
Long Nguyen
ModeratorAdded in the new version of MB Custom Post Type 2.2.0 and MB AIO 1.14.1
Long Nguyen
ModeratorThis issue has been fixed in the new version of Meta Box, please update it.
Long Nguyen
ModeratorHi,
The block editor (Gutenberg) does not support the context
after_title. We've created a note on the documentation https://docs.metabox.io/creating-meta-boxes/#contextsIf you want to use all contexts, please use the classic editor https://wordpress.org/plugins/classic-editor/
Long Nguyen
ModeratorHi,
You can use the setting
stdto set the default value for a field. For examplefunction your_prefix_function_name( $meta_boxes ) { $prefix = ''; $user_id = get_current_user_id(); $meta_boxes[] = [ ... 'fields' => [ [ 'name' => __( 'Editor', 'your-text-domain' ), 'id' => $prefix . 'vob_editor', 'type' => 'user', 'field_type' => 'select_advanced', 'multiple' => true, 'required' => true, 'admin_columns' => [ 'position' => 'after date', 'title' => 'Editor', 'sort' => true, 'searchable' => true, 'filterable' => true, ], 'std' => $user_id, //here ], ], ... ]; return $meta_boxes; }Get more details on the documentation https://docs.metabox.io/field-settings/#general
July 14, 2021 at 4:03 PM in reply to: Media custom fields data not persisted in custom tables #29493Long Nguyen
ModeratorHi,
Can you please share the code that creates the custom table? Please note that the column key must match the field ID. Get more details on the documentation https://docs.metabox.io/extensions/mb-custom-table/
Another note, the field taxonomy set the post terms so it will not save data in the custom table. Please use the field taxonomy_advanced instead of taxonomy. Refer to this topic https://support.metabox.io/topic/custom-fields-are-not-saving-to-custom-table/
July 14, 2021 at 11:00 AM in reply to: ✅How to reuse previously created custom field in multiple groups? #29486Long Nguyen
ModeratorHi,
Currently, there is no option to duplicate a field group in the Builder. But you can export and re-import a field group to duplicate it. Please follow this documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import
Long Nguyen
ModeratorHi,
The setting
upload_dironly available for the field file. The feature request is on the development backlog, please wait for future updates. -
AuthorPosts