I have a custom post type registered as follows:
register_post_type( 'news',
array(
'labels' => $labels,
'public' => true,
'show_ui' => true,
'menu_position' => 5,
'capability_type' => 'post',
'has_archive' => false,
'rewrite' => array('slug' => 'news'),
'hierarchical' => false,
'show_in_menu' => true,
'supports' => array( 'title', 'editor', 'thumbnail' )
)
);
My intent is to have the permalink /news/name-of-the-news-item for the post and a /news/ page listing all the news.
I created a page with slug "news" and a template page for that but when I use the pagination to reach /news/page/2/ I get a 404, because it seems I cannot have a page and a custom post type with the same slug.
Is there a workaround or a strategy to achieve the permalink structure I need? Note that I cannot use archive-news.php for the listing, bacause I also need a text in the page editable in WP admin. Thanks.