Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello Yasmine,
the $_POST no longer has data by the time I use my hook: add_action('save_post_research', 'manage_save_automations', 10, 3);How do you print out the $_POST variable to check if it has data? I use the sample code below and it prints out the value as well.
add_action( 'save_post_research', function( $post_id, $post, $update ) { echo "<pre>"; print_r( $_POST ); echo "</pre>"; die('12345'); }, 10, 3 );Peter
ModeratorHello,
There are no changes in the new version but we've updated the documentation to get the error when adding a new row.
https://docs.metabox.io/extensions/mb-custom-table/#addApril 22, 2024 at 8:14 PM in reply to: Metabox custom field + Oxygen custom blocks in Gutenberg block settings. #45274Peter
ModeratorHello Jeremy,
In case of using Oxygen Builder, please reach out to them if you have any issues with installation, configuration, compatibility, or usage.
Refer to our support policy https://metabox.io/support/topic/support-policy/If you want to display Meta Box fields in the block settings, please use the custom block from Meta Box. Please follow the documentation https://docs.metabox.io/extensions/mb-blocks/
Peter
ModeratorHello Yasmine,
I use the same code on my demo site and don't see the issue. Please add the code to a page template in a standard theme of WordPress without using your custom plugin/theme and recheck this issue.
$current_user = get_current_user_ID(); $post_ids = get_user_meta( $current_user, 'mbfp_posts', true ); $the_query = new WP_Query( [ 'post_type' => 'research', 'post__in' => $post_ids, 'posts_per_page' => -1, ]); // The Loop. if ( $the_query->have_posts() ) { echo '<ul>'; while ( $the_query->have_posts() ) { $the_query->the_post(); echo '<li>' . esc_html( get_the_title() ) . '</li>'; } echo '</ul>'; } wp_reset_postdata();April 20, 2024 at 2:18 PM in reply to: How can we hide the meta box fields for the page set as "Latest Posts"? #45271Peter
ModeratorHello,
If you use the builder, you can go to the Settings tab of the field group > Advanced location rules > Hide if Post: select the blog page, to exclude the field group from showing on the blog page.
Screenshot https://imgur.com/9d5xhg6Following the documentation https://docs.metabox.io/extensions/meta-box-include-exclude/
Peter
ModeratorHello AJ,
If you have a refund request, please contact us by submitting this contact form https://metabox.io/contact/
we will get in touch with you shortly.Peter
ModeratorHello Mark,
Please try to delete the current plugin, then download a fresh copy of Meta Box 5.7.9 from WordPress.org and re-install it on your site.
https://wordpress.org/plugins/meta-box/Let me know how it goes.
Peter
ModeratorThanks for sharing the solution.
Peter
ModeratorHello Yasmine,
you cannot add tabs within a group field type?Yes, correct. You can use the tab field as a top field. It doesn't work as a subfield in a group field.
Regarding the conditional logic issue, I already told you that the nested conditional logic doesn't work, in this topic https://support.metabox.io/topic/multiple-visibility-condition/?swcfpc=1
If you want to create a customization form with custom code, please contact us here https://metabox.io/contact/.
Peter
ModeratorHello Aaron,
Thanks for your feedback. Let me check the $attributes['name'] with the development team and I will get back to you later.
April 18, 2024 at 10:57 PM in reply to: ✅MB Frontend Submission with visitors (not logged-in user) #45257Peter
ModeratorHello,
does the visitors form can be used to change the post-id of another post to erase it?No. Only the author of the post can update their post in the frontend dashboard. Following the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#user-dashboard
If you don't want to show the frontend form for the visitors, you can create a custom code to check the logged-in user and output the frontend form with the shortcode.
April 18, 2024 at 10:43 PM in reply to: ✅Issue with Meta Box v5.9.6 (layout issue for conditional fields) #45256Peter
ModeratorHello,
Please update Meta Box AIO to the new version 1.26.2, Meta Box 5.9.7 and check the issue again.
Peter
ModeratorHello,
Please update Meta Box AIO to the new version 1.26.2 and check the issue again.
Peter
ModeratorHello,
There isn't a hook to move the Favorite Posts settings page to another menu. I use this code to remove the default settings page
add_action( 'admin_init', function() { remove_submenu_page( 'options-general.php', 'mb-favorite-posts' ); }, 999 );and this code to re-register the settings page
add_filter( 'mb_settings_pages', function( $settings_pages ) { $settings_pages[] = [ 'id' => 'mb-favorite-posts', 'option_name' => 'mb_favorite_posts', 'menu_title' => __( 'Favorite Posts', 'mb-favorite-posts' ), 'class' => 'mbfp-settings', 'style' => 'no-boxes', 'column' => 1, 'parent' => 'tools.php', // change parent menu here 'tabs' => [ 'mbfp_general' => 'General', 'mbfp_button' => 'Button', 'mbfp_icon' => 'Icon', ], ]; return $settings_pages; }, 99 );however, it doesn't work properly so I recommend using the default settings page.
Peter
ModeratorHello,
So the issue is in the frontend and related to Bricks builder, not Meta Box itself. I understand you can save the post with an empty URL field in the admin area. Please contact Bricks support to get further assistance.
Regarding the documentation, the URL field is an HTML5 input field and there isn't specific documentation for this. Please read more about HTML5 input fields here https://developer.mozilla.org/en-US/docs/Learn/Forms/HTML5_input_types
-
AuthorPosts