当您使用register_post_type
功能您需要包括对摘录的支持:
add_action( \'init\', \'press_release_post_type\' );
function press_release_post_type() {
register_post_type( \'press_release\',
array(
\'labels\' => array(
\'name\' => __( \'Press Release\', \'$text_domain\' ),
\'singular_name\' => __( \'Press Release\', \'$text_domain\' ),
),
\'has_archive\' => true,
\'hierarchical\' => true,
\'public\' => true,
\'rewrite\' => array( \'slug\' => \'press_release\', \'with_front\' => false ),
\'supports\' => array( \'title\', \'excerpt\' ),
)
);
}
supports
用于直接调用add\\u post\\u type\\u support()的别名。