Forum Replies Created
-
AuthorPosts
-
November 8, 2024 at 11:35 PM in reply to: ✅BUG - Group creates a new group entry upon edit & save (MB Blocks extension) #46898
Peter
ModeratorFYI, the fix for this issue is included in the new version of Meta Box AIO 1.30.5.
Peter
ModeratorHello Kris,
That issue has been fixed in this commit https://github.com/wpmetabox/mb-custom-post-type/commit/9fbdb2b187f4982107e29a363dea7ac1c4c5d88a
it will be included in the next update of the plugin MB Custom Post Types.
Peter
ModeratorIf you want to use Meta Box AIO version 1.30.4, please download it from this link
https://www.dropbox.com/scl/fi/zbu1oakbug4f0h2a372ai/meta-box-aio-1.30.4.zip?rlkey=4m46okccf257hep9pqldsz5ep&st=ynj5yfye&dl=0Thank you.
November 7, 2024 at 10:35 PM in reply to: Images not retrieved through dynamic data and code? #46882Peter
ModeratorHello,
It is an issue with the custom table and custom upload folder. I've escalated this issue to the development team to check this. I will get back to you later.
November 7, 2024 at 10:23 PM in reply to: ✅Loading metabox data in frontend using php throws and #46881Peter
ModeratorHello Henrik,
You use the function esc_html() which escapes HTML tags to wrap the field output, so HTML tags will display in plain text. Please remove it and recheck the issue.
esc_html($serverinformation_clone['serverinformation'])Peter
ModeratorHello,
Please update Meta Box AIO plugin to the new version 1.30.5 and check this issue again. Let me know how it goes.
Peter
ModeratorHello,
Thank you for sharing the solution. Supporting the customization code is beyond our scope of support. However, other users can refer to your solution to update the field in bulk by using WP CLI.
Peter
ModeratorHello,
Please update Meta Box AIO plugin to the new version 1.30.5 and check this issue again. Let me know how it goes.
Peter
ModeratorHello,
Please update Meta Box AIO plugin to the new version 1.30.5 and check this issue again. Let me know how it goes.
Peter
ModeratorHello Dave,
If it is one field, you can separate the field into another field group and register it with code.
Or use the conditional logic, create a custom callback to check the admin area and add it to the logic setting. Please follow the documentation https://docs.metabox.io/extensions/meta-box-conditional-logic/#custom-callback
November 6, 2024 at 10:07 PM in reply to: Rich text formatting stopped working in cloneable group from last one week. #46862Peter
ModeratorThanks for your feedback.
I can reproduce the issue on my site and I've escalated this to the development team. It should be fixed in the next update of our plugins.
Peter
ModeratorHello Jayron,
You can filter posts by a field value by using the arguments
meta_keyandmeta_valuein the query args option. Please check this screenshot https://imgur.com/yFXnr4K
and follow the WordPress documentation https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parametersLet me know how it goes.
Peter
ModeratorHello,
Thank you for your feedback.
The development team is aware of the issue with Plural and Singular names of the CPT and working on it. It will be included in the next update of our plugins.
Peter
ModeratorHello Roel,
Thanks for your feedback.
I recheck this case when using the image field, saving the image in a custom folder and field value in a custom table, the helper function rwmb_meta() doesn't return the correct value.
I suggest you use an SQL query to get the field value instead of using the helper function. For example:global $wpdb; $post_id = get_the_ID(); $images = $wpdb->get_col( "SELECT image FROM my_custom_table WHERE ID = $post_id" ); foreach ( $images as $key => $image ) { $image = maybe_unserialize( $image ); $image = array_pop( $image ); echo '<img src="' . $image . '" />'; }imageis the field ID,my_custom_tableis the custom table name.Peter
ModeratorHello Dave,
You can use the code to register the meta box and custom fields, then use the WordPress function is_admin() to check if the current screen isn't in the admin area and register the fields. Here is an example https://support.metabox.io/topic/rwmb_frontend_validate-and-empty-id-in-config/#post-46359
if ( ! is_admin() ) { $meta_boxes[] = [ 'title' => 'Filter Products', 'post_types' => 'product', 'id' => 'filter-products', 'context' => 'normal', 'fields' => ............... ]; }Refer to the documentation https://docs.metabox.io/creating-fields-with-code/
-
AuthorPosts