我有一个名为“电影”的类别,所以我有,site.com/movies/content-goes-here
但我不确定自定义帖子类型是否与类别冲突,或者某些事情没有正确完成。
这是自定义帖子类型:
function movie_post_type() {
register_post_type('movies', array(
'labels' => array(
'name' => 'Movie Posts',
'singular_name' => 'Movie',
'add_new' => 'Add New',
'edit_item' => 'Edit ',
'new_item' => 'New movie post',
'view_item' => 'View movie post',
'search_items' => 'Search movie posts',
'not_found' => 'No movie posts found',
'not_found_in_trash' => 'No movie posts found in Trash'
),
'public' => true,
'taxonomies' => array('category', 'post_tag')
));
}
add_action('init', 'movie_post_type');
我做错了什么吗?