Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Yes, for now, please use the class
$wpdbto update the field value in the custom table.
https://developer.wordpress.org/reference/classes/wpdb/Long Nguyen
ModeratorHi,
Can you please let me know which field type you are using?
You can use the dynamic tags of Elementor to show the field value. Refer to this topic: https://support.metabox.io/topic/user-custom-fields-and-elementor-dynamic-content-for-author/.
Long Nguyen
ModeratorHi,
If you’re going to import/export simple fields (like text, select, radio, checkbox, etc.), then you can use these plugins to do the job:
https://wordpress.org/plugins/wp-ultimate-csv-importer/
https://wordpress.org/plugins/wp-ultimate-exporter/For complex fields, we need to code for the integration. We’re still working on it.
Refer
https://support.metabox.io/topic/import-images-into-custom-table/
https://support.metabox.io/topic/select-advanced-for-woo-products/Long Nguyen
ModeratorHi,
Meta Box has not supported a field to select the post format yet. But we can create a custom field
radiowith options like WordPress post formats. Sample code below:$meta_boxes[] = [ 'title' => __( 'Post Meta', 'your-text-domain' ), 'id' => 'post-meta', 'fields' => [ [ 'name' => __( 'Post Format', 'your-text-domain' ), 'id' => $prefix . 'post_format', 'type' => 'radio', 'options' => [ 'gallery' => __( 'Gallery', 'your-text-domain' ), 'aside' => __( 'Aside', 'your-text-domain' ), 'status' => __( 'Status', 'your-text-domain' ), 'link' => __( 'Link', 'your-text-domain' ), 'image' => __( 'Image', 'your-text-domain' ), 'quote' => __( 'Quote', 'your-text-domain' ), 'video' => __( 'Video', 'your-text-domain' ), 'audio' => __( 'Audio', 'your-text-domain' ), 'chat' => __( 'Chat', 'your-text-domain' ), ], 'inline' => false, ], ], ];Use the action hook rwmb_{$field_id}_after_save_field to set post format after saving the custom field.
add_action( 'rwmb_post_format_after_save_field', function( $null = true, $field, $new, $old, $object_id ) { set_post_format( $object_id, $new ); }, 10, 5 );Ok, then we can use the function get_post_format() to get the post format as default feature post format.
Long Nguyen
ModeratorHi,
The helper function rwmb_set_meta() has not worked with the field which saved value in the custom table yet, only the default table
wp_postmetaof WordPress.I'm going to inform the development team to cover this case in future updates. Thank you.
Long Nguyen
ModeratorHi,
Did you deactivate all plugins except Meta Box and MB Custom Post Type? If yes, please share your admin site account via this form https://metabox.io/contact/. I will check if there are any issues.
Long Nguyen
ModeratorHi,
It is possible that the issue happens due to the limitation of PHP settings. Please follow this article to know how to resolve it https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/.
Long Nguyen
ModeratorHi,
Please follow step Debugging Information here https://support.metabox.io/topic/how-to-create-a-new-topic/
If the menu still does not appear and there is no error message, please do the step Private Website Info then let me know how it goes.
March 2, 2021 at 8:54 AM in reply to: ✅Metabox User Avatar not working with Elementor author widget #24682Long Nguyen
ModeratorI see, it is removed.
Long Nguyen
ModeratorHi Frizky,
If you also activate the plugin Meta Box, please check it in Meta Box > Post types. Screenshot https://share.getcloudapp.com/wbu9LxZq.
Or the menu Post Types https://share.getcloudapp.com/geu4P7wR.
Long Nguyen
ModeratorHi,
Thank you for your suggestions. I've forwarded this to our developers, they'll explore the possibilities.
March 1, 2021 at 3:29 PM in reply to: ✅WP_Query Multiple Relationships relation = AND doesn't work ? #24668Long Nguyen
ModeratorHi,
I will check this case and let you know later.
Thank you.
March 1, 2021 at 10:44 AM in reply to: ✅Metabox User Avatar not working with Elementor author widget #24664Long Nguyen
ModeratorHi,
Do you mean removing the link to the author page in the author box?
(removed)Long Nguyen
ModeratorHi Gildo,
Can you please share the pattern? I've re-checked the Validation pattern and it works well on both
textandtextareafield.February 28, 2021 at 3:36 PM in reply to: ✅Metabox User Avatar not working with Elementor author widget #24660Long Nguyen
ModeratorHi,
Thanks for your reporting.
The solution MB User Avatar is not working with the Elementor Author Box widget. The widget uses another way to get the user's avatar. I'm going to inform the development team to cover this case.
You can also add this custom code to the file functions.php in the child theme folder to solve this issue.
add_filter( 'get_avatar_url', 'mbua_get_avatar_url', 10, 3 ); function mbua_get_avatar_url( $url, $id_or_email, $args ) { if ( is_numeric( $id_or_email ) ) { $user_id = $id_or_email; } elseif ( is_string( $id_or_email ) && ( $user = get_user_by( 'email', $id_or_email ) ) ) { $user_id = $user->ID; } elseif ( is_object( $id_or_email ) && ! empty( $id_or_email->user_id ) ) { $user_id = (int) $id_or_email->user_id; } if ( empty( $user_id ) ) { return $url; } $custom_avatar = rwmb_meta( 'mbua_avatar', [ 'object_type' => 'user' ], $user_id ); if ( ! $custom_avatar ) { return $url; } $url = $custom_avatar['full_url']; return $url; } -
AuthorPosts