它很简单,我认为,但我没有找到任何关于它..我想为我的三个职位类型的功能缩略图,我请你们帮助我。功能缩略图为特定的自定义帖子类型
add_theme_support('post-thumbnails', array('crew', 'staff' , 'guest'));
add_action('init', 'create_post_type');
function create_post_type() {
register_post_type('crew',
array(
'labels' => array(
'name' => __('Crew'),
'singular_name' => __('Crew')),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'crew')
)
);
register_post_type('staff',
array(
'labels' => array(
'name' => __('Staff'),
'singular_name' => __('Staff')),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'staff')
)
);
register_post_type('guest',
array(
'labels' => array(
'name' => __('Gast'),
'singular_name' => __('Gast')),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'guest')
)
);
}
我觉得没有真的多说,它可能很为你们很简单....
非常感谢!绝对完美! – 2015-02-10 16:32:44