Forum Replies Created
-
AuthorPosts
-
March 20, 2023 at 6:41 PM in reply to: Metabox Builder Select with Callback Choice not working. #41115
Peter
ModeratorHello,
You need to declare your callback function in the theme or plugin code first. Then add the callback function name in the builder to make it works.
Peter
ModeratorHello,
This issue has been fixed in this commit https://github.com/wpmetabox/mb-elementor-integrator/commit/3120d4507d3a703271693a170570b711aceac3d2
You can try to apply the change on your site or wait for the next update of the plugin. Thanks.
Peter
ModeratorHello Stefano,
Can you please export the field group Team Member to a JSON file and share it here? I will try to import it to my demo site and see how it goes.
You can also try to re-install Meta Box AIO and re-import the JSON file to your site.
Peter
ModeratorHello,
There is a confirmation box that allows users to remove a clone group item, please check this screenshot https://monosnap.com/file/HUR7jxDwTjixz8Hddja2qPvUo4tI24
This is the Javascript code to remove the HTML elements so there is no PHP action hook like
rwmb_frontend_after_process. You can use the JS code and listen to the change then do something on your own.Peter
ModeratorHello,
I don't see that issue on my demo site. Please try to deactivate all plugins except Meta Box, MB extensions and switch to a standard theme of WordPress and check this issue again. You can also try again with a simple field group with some text fields.
March 18, 2023 at 10:52 PM in reply to: Beaver Builder image gallery connection to Metabox field #41095Peter
ModeratorHello,
Please install the plugin Meta Box Beaver Themer Integrator with this one https://drive.google.com/file/d/1kvQ9t4LdNPqZjfMOGXmdpskyaTglhZqH/view?usp=share_link
and let me know how it goes.
Peter
ModeratorHello,
Meta Box does not support limiting users from creating posts. You can try to use the
ifstatement to check if the user has a post and then output the frontend submission form or not. Please refer to this topic https://wordpress.stackexchange.com/questions/139818/check-if-current-user-has-post-in-post-type-and-is-author-rolePeter
ModeratorHello Jean,
I see on your page, the frontend submission form is included in a popup, it might cause the JS issue. Please add the form to the page directly instead of in a popup and check this issue again. Let me know how it goes.
Peter
ModeratorHello,
I've tried to run the code on my local site and see there are two issues:
- You should run the callback function with a higher priority like 99
add_filter('mbct_import_column_output', 'bcc_modify_title_column_output', 99, 4);- You should return the HTML code instead of printing it out, because in the WordPress list table function, it is outputted by using
echostate. Please check the filewp-admin/includes/class-wp-list-table.phpline 1532. It should be:// Make the title a link to the 'edit' page. $output = '<a href="' . esc_url($edit_url) . '">' . $output . '</a>';Let me know how it goes.
Peter
ModeratorHello,
Yes, there is a way. Please enable the collapsible setting of the group field and set the default state Collapsed. Please read more on the documentation https://docs.metabox.io/extensions/meta-box-group/#settings
March 18, 2023 at 6:54 PM in reply to: ✅Meta Box in Bricks Builder - Use MB Field Group on another page #41088Peter
ModeratorHello,
If the Bricks builder supports using the PHP code, you can use the helper function
rwmb_meta()to get a field value from a specific page/post by passing the post ID to the third parameter. Please read more on the documentation https://docs.metabox.io/functions/rwmb-meta/March 18, 2023 at 6:38 PM in reply to: ✅Excluding the current post in reciprocal relationships #41087Peter
ModeratorHell Tom,
I see the issue. In this case, you will need to use the code to register the relationship and use the query args to exclude the current post from the list of posts.
add_action( 'mb_relationships_init', 'callback_function' ); function callback_function() { $post_id = null; if ( isset( $_GET['post'] ) ) { $post_id = intval( $_GET['post'] ); } elseif ( isset( $_POST['post_ID'] ) ) { $post_id = intval( $_POST['post_ID'] ); } MB_Relationships_API::register( [ 'id' => 'post-to-post', 'reciprocal' => true, 'from' => [ 'object_type' => 'post', 'post_type' => 'post', 'meta_box' => [ 'context' => 'normal', ], ], 'to' => [ 'object_type' => 'post', 'post_type' => 'post', 'meta_box' => [ 'context' => 'normal', ], 'field' => [ 'query_args' => [ 'post__not_in' => [ $post_id ], // here ], ], ], ] ); }March 18, 2023 at 6:23 PM in reply to: MB custom fields and WP Gridbuilder data issue on filter facet #41086Peter
ModeratorHello,
I do not see the sample post ID
123is replaced when you use the code. According to your screen record, the post ID is424. Can you please try to use the code again?$number = rwmb_meta( 'price', '', 424 );Please check this screenshot https://monosnap.com/file/09JInc0QAK7R5gpdB4gNMSgZ1f3q0g
Peter
ModeratorHello,
What Meta Box does, in this case, is to support the UI to register the post type with the WordPress function
register_post_type()instead of using the code.
https://developer.wordpress.org/reference/functions/register_post_type/If you want to check the issue, you can register some CPTs with the code and with your plugins and with non-plugins activated on a staging site to see how it goes. It's not possible to check a conflict with any plugins on the internet and it is also beyond our scope of support of Meta Box which you can read more here https://support.metabox.io/topic/support-policy/
I hope that makes sense.
Peter
ModeratorHello,
The field
image_uploaddoes not work with the non-logged in users. Instead, please use the fieldimage, read more on the documentation https://docs.metabox.io/fields/image/ -
AuthorPosts