Custom Fields
Re-Envisioned
Support MB Admin Columns No Admin Columns Showing

This topic contains 4 replies, has 2 voices, and was last updated by  SLG Marketing 4 months ago.

  • Creator
    Topic
  • #15302

    SLG Marketing
    Participant

    I’ve tried adding some admin columns to a CPT but they won’t output at all. What am I doing wrong?

     public function generateMetaBox($meta_boxes){
            // General
            $meta_boxes[]=array(
                'id'=>'general',
                'title'=>'General Person Settings',
                'post_types' => 'people',
                'context'    => 'normal',
                'priority'   => 'high',
                'fields'=> array(
                    array(
                        'name'  =>  'Job Title',
                        'id'    =>  'people_jobtitle',
                        'type'  =>  'text',
                        'desc'=>'TODO: help text',
                        'admin_columns' => 'after title'
                    ),
                    array(
                        'name'=>'Year Joined',
                        'id'=>'people_yearjoined',
                        'desc'=>'TODO: help text',
                        'type'=>'number',
                        'min'   =>  1980,
                        'max'   =>  date('Y'),
                        'admin_columns' => true,
                    ),
                )
            );
    
            return $meta_boxes;
        }
Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #15307

    Anh Tran
    Keymaster

    I know this is a stupid question, but have you activated the MB Admin Columns extension? Some users forget to do this.

    #15311

    SLG Marketing
    Participant

    It’s being loaded as an MU plugin. I’ll try moving it to the normal plugin folder.

    #15312

    SLG Marketing
    Participant

    I just tried it as a normal plugin, I am getting the same issue.

    #15406

    SLG Marketing
    Participant

    Is there any further debug information you need on this?

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.