• Hi

    I have this code, that works with 4.3.3, but not with the latest 4.3.10, and I can’t find out of why:

    `if ( !class_exists( ‘RW_Meta_Box’ ) )
    return;

    $meta_box = array(
    ‘id’ => ‘relatedpage_mb’,
    ‘title’ => ‘Relateret udgivelse/bog/film’,
    ‘pages’ => array(‘topic’),
    ‘context’ => ‘side’,
    ‘priority’ => ‘high’,
    ‘fields’ => array(
    array(
    ‘name’ => ‘Vælg’,
    ‘desc’ => ”,
    ‘id’ => ‘related_page_id’,
    ‘type’ => ‘selectpage’,
    ‘page_types’ => array(“publication”, “book”, “movie”)
    )
    )
    );

    new RW_Meta_Box($meta_box);`

    It seems, that it’s the ‘type’ => ‘selectpage’, that makes it throw this error:

    call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in plugins/meta-box/inc/meta-box.php on line 388

    call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in plugins/meta-box/inc/meta-box.php on line 80

    https://ww.wp.xz.cn/plugins/meta-box/

The topic ‘Unknown fieldtype selectpage’ is closed to new replies.