由于仪表板使用menu\\u位置2,只需使用menu\\u位置1即可。
因此:
$args = array(
\'label\' => __( \'programmes\', \'hiblio\' ),
\'description\' => __( \'Programmes for application from partner organisations\', \'hiblio\' ),
\'labels\' => $labels,
\'supports\' => array( \'title\', \'editor\', \'excerpt\', \'author\', \'thumbnail\', \'comments\', \'revisions\', \'custom-fields\', ),
\'taxonomies\' => array( \'programmes_categories\' ),
\'hierarchical\' => true,
\'public\' => true,
\'show_ui\' => true,
\'show_in_menu\' => \'hiblio\',
\'show_in_nav_menus\' => false,
\'show_in_admin_bar\' => false,
\'menu_position\' => 1,
\'can_export\' => true,
\'has_archive\' => true,
\'exclude_from_search\' => true,
\'publicly_queryable\' => false,
\'capability_type\' => \'post\'
);
信息提供者:
Placing a custom post type menu above the Posts menu using menu_position?快乐的编码,
Kuchenundkakao