Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 91 through 105 (of 3,786 total)
  • Author
    Posts
  • in reply to: Set form values to the current user's info #49688
    PeterPeter
    Moderator

    Hello,

    Thanks for reaching out.

    You can use the filter hook rwmb_{$field_id}_field_meta to set the field value on the editing page or frontend form. Here is an example:

    Field ID: user_name

    add_filter( 'rwmb_user_name_field_meta', function( $value, $field, $saved)  {
        $user = wp_get_current_user();
        $user_name = $user->display_name;
        return $user_name;
    }, 10, 3 );

    Let me know if it helps.

    in reply to: Field Group Placement #49685
    PeterPeter
    Moderator

    Hello,

    Thanks for reaching out.

    If the field group (meta box) on the post editing page has been moved between the sidebar and under the main content, the position of the meta box will be saved to the user meta and the field group setting will not work. You can click on the arrow icon to change its position, see this screenshot https://imgur.com/RVsQ05a

    PeterPeter
    Moderator

    Hello,

    This issue has been fixed in the commit https://github.com/wpmetabox/meta-box/commit/902a4990fb960b7621f540e28905fa00f0b3d798

    you can try to apply it to your site while waiting for the next update of the Meta Box plugin.

    Thank you.

    in reply to: New Block Editor field can't use Woocommerce blocks #49680
    PeterPeter
    Moderator

    Hello Dassels,

    Thanks for your feedback.

    I also see the issue on my site and I've escalated this issue to the development team to improve the block editor field for future updates.

    in reply to: Table 'local.wp_mb_relationships' doesn't exist #49678
    PeterPeter
    Moderator

    Hello,

    Thanks for reaching out.

    It looks like the table wp_mb_relationships was created and deleted, then Meta Box marked it as created by creating the option mbr_table_created and set value to 1. Please access the database, table wp_options and delete the option mbr_table_created to fix the issue.

    Let me know how it goes.

    in reply to: Group image field Breakdance builder #49674
    PeterPeter
    Moderator

    Hello Bertus,

    I've replied to your question in the ticket system:

    When I edit the Group Test page and select the repeater field, I get 500 error message and here is the debug log

    
    [22-Jan-2026 15:22:17 UTC] Breakdance\AJAX\BreakdanceAjaxHandlerException thrown with message "array_keys() expects parameter 1 to be array, string given"
    
    Stacktrace:
    #17 Breakdance\AJAX\BreakdanceAjaxHandlerException in /wp-content/plugins/breakdance/plugin/ajax/api.php:118
    #16 Breakdance\Lib\Vendor\Whoops\Exception\ErrorException in /wp-content/plugins/breakdance/plugin/dynamic-data/fields/metabox/metabox-image-field.php:94
    #15 array_keys in /wp-content/plugins/breakdance/plugin/dynamic-data/fields/metabox/metabox-image-field.php:94
    #14 Breakdance\DynamicData\MetaboxImageField:handler in /wp-content/plugins/breakdance/plugin/dynamic-data/breakdance-dynamic-shortcode.php:21
    #13 Breakdance\DynamicData\breakdanceShortcodeHandler in /wp-content/plugins/breakdance/plugin/dynamic-data/breakdance-dynamic-shortcode.php:51
    #12 Breakdance\DynamicData\breakdanceDoShortcode in /wp-content/plugins/breakdance/plugin/dynamic-data/ajax-get-data.php:100
    #11 Breakdance\DynamicData\getData in /wp-content/plugins/breakdance/plugin/ajax/api.php:116
    #10 call_user_func_array in /wp-content/plugins/breakdance/plugin/ajax/api.php:116
    #9 Breakdance\AJAX\{closure} in /wp-includes/class-wp-hook.php:341
    #8 WP_Hook:apply_filters in /wp-includes/class-wp-hook.php:365
    #7 WP_Hook:do_action in /wp-includes/plugin.php:522
    #6 do_action in /wp-content/plugins/breakdance/plugin/ajax/ajax_at_any_url.php:28
    #5 Breakdance\AJAX\see_if_this_is_an_ajax_at_any_url_request_and_if_so_fire_it in /wp-content/plugins/breakdance/plugin/actions_filters/template_include.php:53
    #4 Breakdance\ActionsFilters\template_include in /wp-includes/class-wp-hook.php:341
    #3 WP_Hook:apply_filters in /wp-includes/plugin.php:205
    #2 apply_filters in /wp-includes/template-loader.php:114
    #1 require_once in /wp-blog-header.php:19
    #0 require in /index.php:17
    

    It looks like the issue comes from the Breakdance source code /wp-content/plugins/breakdance/plugin/dynamic-data/fields/metabox/metabox-image-field.php:94
    so I suggest you contact Breakdance support and share the error log and ask them how to fix the issue in their plugin.

    in reply to: "Metabox Extensions that require update" keeps coming back #49673
    PeterPeter
    Moderator

    Hello Andreas,

    Thanks for reaching out.

    Perhaps the MySheetEditor plugin utilizes the Meta Box plugin as a library in its source code. I recommend contacting the MySheetEditor plugin support to get further assistance.

    in reply to: Reordering Field Groups and Fields on Settings Pages #49672
    PeterPeter
    Moderator

    Hello Jayron,

    You can re-order field groups (meta boxes) on the settings page and re-order subfields in a group field when editing a field group as well. Here are screen records
    https://imgur.com/pjWbOZH
    https://imgur.com/TOvkfKQ

    Let me know if it doesn't work on your end or if it isn't your requirements.

    PeterPeter
    Moderator

    Hello Sean,

    I check the code that you created to output field value in the frontend, and there are some basic issues:

    1. $group_id = "gbr_' . $abbr . '_group";

    wrong single quotes to get the group field ID. It should be $group_id = "gbr_" . $abbr . "_group";

    2.

    $img_type = $group[ $field_name ] ?? '';
    $image_id = $group[ 'single_mon_image' ] ?? 0;
    

    you get the group value with this code
    $group_value = rwmb_meta( $group_id, [ 'object_type' => '' ] );

    but get the subfield value from $group variable. It should be

    $img_type = $group_value[ $field_name ] ?? '';
    $image_id = $group_value[ 'single_mon_image' ] ?? 0;
    

    I hope that makes sense.

    PeterPeter
    Moderator

    Hello Sean,

    Thanks for reaching out.

    I'm checking the issue and I will get back to you as soon as I have more information.

    in reply to: trigger rwmb_after_save_post manually #49664
    PeterPeter
    Moderator

    Hello,

    Then I don't have any idea how to trigger an action hook when importing data directly to the database. You can contact TablePlus support and ask them for more information.

    Thanks.

    in reply to: Default values not applying for radio and number fields #49663
    PeterPeter
    Moderator

    Hello Kyle,

    Thanks for reaching out.

    I'm not able to reproduce the issue on my demo site. The default value of the radio and number field displayed correctly when I create a new post. Can you please try again with another site or a clean site and see if it helps?

    Here is my screen record https://drive.google.com/file/d/13SN2e1-TZvrz95IX_zNvZN8fPuISVs25/view?usp=sharing

    PeterPeter
    Moderator

    Hello,

    Thank you for your feedback.

    I can reproduce the issue on my site. The FSE doesn't work when using a Block editor field. I've escalated this issue to the development team to fix it as soon as possible.

    PeterPeter
    Moderator

    Hello Jayron,

    Please try this custom CSS code to increase the switch field size and let me know if it helps

    .rwmb-switch-label {
        --size: 30px;
    }
    in reply to: Add custom fields to WooCommerce Order #49655
    PeterPeter
    Moderator

    Hello,

    No, it isn't possible. Meta Box will create input fields in the admin area, the user can fill the fields with values and output values in the frontend. We don't support adding field value on the Cart or Checkout page in the frontend.

    Thanks.

Viewing 15 posts - 91 through 105 (of 3,786 total)