Forum Replies Created
-
AuthorPosts
-
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/
November 5, 2024 at 9:19 PM in reply to: ✅How to prevent the removal of HTML entities / special characters? #46847Peter
ModeratorHello Juergen,
Please try to bypass the sanitization and add the HTML tag/entities to the field again. Following the documentation https://docs.metabox.io/sanitization/#bypass-the-sanitization
Let me know how it goes.
November 5, 2024 at 9:05 PM in reply to: ✅Need Help with Custom Field Issue After Metabox Update #46846Peter
ModeratorHello Gagan,
You can try to follow this tutorial to increase the PHP setting
max_input_varsto fix the issue
https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/Let me know how it goes.
November 5, 2024 at 9:03 PM in reply to: Rich text formatting stopped working in cloneable group from last one week. #46845Peter
ModeratorHello,
I test to create a cloneable group and a WYSIWYG field on my demo site, add the value like that in the admin area and output the value in the frontend but don't see that issue. Please check this screenshot https://imgur.com/nAYN6rP
Please share some screenshots of the field value in the admin area and the code that you use to output the field value. Or do you use a page builder to output the field value?
Peter
ModeratorHello Tom and seaj1one,
Thank you for the feedback. I've informed the development team to clear the cache of the changelog page automatically. It will be implemented soon.
November 5, 2024 at 8:28 PM in reply to: error in WPCodebox2 but not in Bricksbuilder fontend. #46843Peter
ModeratorHello,
Maybe the issue happens when you use the regex function but the function
rwmb_get_value()returns an empty value. You should check the value isn't empty before executing the regex function.
Besides that, it isn't an issue of Meta Box itself so if you still have an issue when using the regex function, please contact an expert developer to help you in this case.November 5, 2024 at 8:18 PM in reply to: ℹ️Automatically disable "Create custom table" after creating. #46842Peter
ModeratorHello Roel,
Thank you for your feedback.
After the custom table is created, you can manually disable the option "Create table automatically" to reduce database queries that arise from this option.
I will inform the development team to consider supporting a feature to disable this option after the custom table is created.
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,
Please update Meta Box AIO to the new version 1.30.4 to fix the issue. Let 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,
Thank you for your feedback.
The development team is aware of this issue and working on it. It will be included in the next update of our plugins.
Peter
ModeratorHello,
Thank you for your feedback.
The development team is aware of this issue and working on it. It will be included in the next update of our plugins.
Peter
ModeratorHello,
Is this the appropriate use of Custom Taxonomy Fields?You can use the field
taxonomyof WordPress. It works the same as the Taxonomy meta box of WordPress to set the post terms.How do I display the data for it using MB Views if so?Please follow the documentation to use the View template to output the post data and custom fields
https://docs.metabox.io/extensions/mb-views/How do I display the data for a particular Custom Taxonomy if multiple of that Taxonomy are assigned to a Post?If you want to display some specific terms in the frontend, you need to create some custom code to do so. If you are not able to complete the task, we offer a customization service with an extra fee. Please contact us here for more details https://metabox.io/contact/
November 4, 2024 at 8:31 PM in reply to: Uncaught TypeError: MBR_Admin_Filter::get_selected_item(): #46823Peter
ModeratorHello,
Please share your site credentials by submitting this contact form https://metabox.io/contact/
I will take a look. -
AuthorPosts