Admin columns are not working with subfields

Support MB Group Admin columns are not working with subfieldsResolved

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #36374
    Alaan TVAlaan TV
    Participant

    I tried to set one of the group's subfields to be displayed with admin columns, but it didn't work. The field should be out of the group to make it work.

    function create_my_fields( $meta_boxes ) {
        $meta_boxes[] = [
            'title'      => '...',
            'id'         => '...',
            'post_types' => '...',
            'context'    => '...',
            'fields'     => [
                [
                    'id'          => '...',
                    'type'        => 'group',
                    'group_title' => '...',
                    'fields'      => [
                        [
                            'id'            => '...',
                            'type'          => 'checkbox',
                            // This will NOT work
                            'admin_columns' => [
                                'position' => 'after date',
                                'title'    => 'Active',
                            ],
                        ],
                    ],
                ],
                [
                    'id'            => '...',
                    'type'          => 'checkbox',
                    // This will work
                    'admin_columns' => [
                        'position' => 'after date',
                        'title'    => 'Active',
                    ],
                ],
            ],
        ];
        return $meta_boxes;
    }
    add_filter( 'rwmb_meta_boxes', 'create_my_fields' );
    

    How to use the admin columns with the group subfields?

    #36384
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The admin columns do not work with the subfields in a group, only work with the top field. I will inform the development team to consider supporting this case in future updates.

    #38973
    Thomas NelsonThomas Nelson
    Participant

    Yes please! Anywhere we can upvote feature requests?

    #38980
    Alaan TVAlaan TV
    Participant

    That's right, is there any page to upvote feature requests, or submit new feature requests?

    #39165
    Alaan TVAlaan TV
    Participant

    Is there any expected time to get this addition released, please?

    #41615

    This should be documented in the very beginning in a red box dont you think?
    https://docs.metabox.io/extensions/mb-admin-columns/#custom-admin-columns

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.