你需要register the custom post status.
将以下功能(根据您的自定义状态进行调整)添加到functions.php 为我解决了这个问题:
/**
 * Register custom post status: license
 */
function register_custom_post_status_license() {
    $custom_status = \'license\';
    $count_label = \'License <span class="count">(%s)</span>\';
    register_post_status( $custom_status, array(
        \'label\'                     => _x( \'License\', \'post\' ),
        \'public\'                    => true,
        \'exclude_from_search\'       => false,
        \'show_in_admin_all_list\'    => true,
        \'show_in_admin_status_list\' => true,
        \'label_count\'               => _n_noop( $count_label, $count_label ),
    ) );
}
add_action( \'init\', \'register_custom_post_status_license\' );