的第四个参数add_meta_box() 是post_type.  所以如果你用post, 它只会显示在WordPress的本地帖子上。
尝试以下操作:
add_meta_box(
    \'my-meta-box-id2\',
    \'Enter your PDF location for your post category below:\',
    \'cd2_meta_box_cb\',
    \'your_custom_post_type_name\',
    \'normal\',
    \'high\'
);
 如果要将此附加到多个帖子类型,则应该可以:
$post_types = array( \'post_type_1\', \'post_type_2\', ); // and so forth
foreach( $post_types as $post_type) {
    add_meta_box(
        \'my-meta-box-id2\',
        \'Enter your PDF location for your post category below:\',
        \'cd2_meta_box_cb\',
        $post_type,
        \'normal\',
        \'high\'
    );
}
(
Whoops -- 修复了实际使用
$post_type 变量。)
参考文献
Codex page for add_meta_box()