Custom Column means custom field value is unchangable

Support MB Admin Columns Custom Column means custom field value is unchangableResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35735
    David StephensonDavid Stephenson
    Participant

    If you create an admin column for a metabox custom field, the value cannot be updated.

    I have created a Customer Post Type called nomination, with a custom field called nomination_year.

    The following code creates an admin column for nomination_year:

    
    add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) {
        $meta_boxes[] = array(
            'title'      => 'Nomination Admin Columns',
            'post_types' => 'nomination',
            'fields'     => array(
                array(
                    'name'          => 'Award Year',
                    'id'            => 'nomination_year',
                    'type'          => 'number',
                    'admin_columns' => array(
                        'position' => 'after title',
                        'sort' => true,
                        'searchable' => true
                    ),
                ),
            ),
        );
        return $meta_boxes;
    } );
    

    However, if I try to updates any Nomination's year value, it does not change when I click UPDATE in the admin dashboard.

    #35761
    Long NguyenLong Nguyen
    Moderator

    Hi,

    I do not see that issue on my end, screen record https://monosnap.com/file/zVMRKBqhM4cXUK0n3OCtMXyjuF7KfL

    Please try to deactivate all plugins except Meta Box, MB extensions and switch to the standard theme of WordPress (Twenty TwentyTwo) then re-check the issue.

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