Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 136 through 150 (of 3,835 total)
  • Author
    Posts
  • in reply to: Calculate Custom Field Average #49702
    PeterPeter
    Moderator

    Hello Arleen,

    Thanks for reaching out.

    Meta Box doesn't support a function that calculates the average of the rating field. You can try to create a custom PHP code to calculate it. Maybe related tutorial https://docs.metabox.io/tutorials/add-star-rating-fields/

    If you are not familiar with coding, we offer a customization service with an extra fee. Please contact us here for more details https://metabox.io/contact/

    in reply to: Conditional Logic Option to Delete meta for Hidden Fields #49701
    PeterPeter
    Moderator

    Hello Jacob,

    Thanks for reaching out.

    Yes, that is the custom code. There isn't an option to remove the field value if it is hidden. You can use the JS code to set the empty value for the field.

    in reply to: Field Group Placement #49699
    PeterPeter
    Moderator

    Hello,

    I don't see that issue on my demo site when using the Classic Editor, as in your screenshot. Please check this https://imgur.com/a/rNdSx42

    Also, if you use the Classic Editor, you can easily drag and drop meta boxes to change the position instead of using the arrow icon.

    in reply to: Field Group Placement #49689
    PeterPeter
    Moderator

    Hello,

    > I have the setting correct in custom fields, but it is not working.

    Can you please create a new field group and see where it displays on the editing page?

    > the fields are constantly moving in my admin (up and down to different sections)

    Please share some screenshots or a screen record of the issue.

    Thank you.

    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.

Viewing 15 posts - 136 through 150 (of 3,835 total)