I have created a custom post type in WordPress, but when I add a new post to this post-type it doesn't show in the list of all posts in the post-type. Instead it displays all posts from the default posts-page.
Function:
function create_post_type() {
register_post_type( 'winactie',
array(
'labels' => array (
'name' => __( 'Winactie' ),
'singular_name' => __( 'Actie' )),
'public' => true,
'has_archive' => true,
'menu_position' => 5,
'rewrite' => array('slug' => 'winactie'),
)
);
}
add_action( 'init', 'create_post_type' );
Am I missing something?