I set my system up with the exact same as your code above. I get the same results. What I did to fix it was change your line
'rewrite' => array( 'slug' => 'articles', 'with_front' => true ),
to
'rewrite' => array( 'slug' => 'articles2', 'with_front' => true ),
and then to
'rewrite' => array( 'slug' => 'articlis', 'with_front' => true ),
and everything loaded fine on the last 2 options. It looks like maybe there is perhaps a built-in usage of articles already so that when you re-write to “articles” wordpress isn’t sure what to do. I don’t have an explanation for it.
What I would suggest all the same is use a CPT name more specific than what you are currently using.
Instead of articles, can you use a name that is actually what the post will represent? Changing
Related Posts:
- Add archive/category results to single post page
- Limiting the Archive page to posts posted by particular author
- Custom Post Type Archive – archive.php is present, but it is not being used
- Custom Post Type Settings page, choose page to display archive
- Make Two Views of Post Type Archive At Two URLs
- Change number of posts to show on Archive page (custom post type)
- Showing only future posts in archive based on custom field date
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- How to remove current year from wp_get_archives
- WordPress custom post type archive with description
- Archive template
- Archive list for custom post type categories
- Check if is post type archive and in category
- Create Archive Page with Visual Composer
- Custom post type is showing custom home page, not archive page
- Custom post type archive page blank
- Custom Post Type Archive template page not found
- My archive-posttype.php template is not loading
- Custom Post Archive is not working
- How to integrate single and archive templates for custom post type in any WordPress theme
- Not able to see archive page of custom posts
- How to get the Custom Post Type Archive inside a folder
- Archive Custom Post Type
- Custom Post Type Archive template not being called
- Custom Post Type archive (archive-{post-type}.php) is not working
- How to display archive page posts based on author_id
- Using WP_Query how can I show events (a custom post type) that are in the future?
- Archive-Custom-Post-Type order by Event Date, ASC, and hide events that have completed
- Need equivalent of single_term_slug
- Is possible register two archive pages for single custom post type?
- Custom post archive page not opening 404 page
- Archive page of CPT’s custom Taxonomy
- Finding the CPT archive template source
- What code do I “comment out” to remove the loop from this Custom Taxonomy
- Why is my archive page looping through all but one post?
- ACF Pro Accessing fields on a Custom Post Type
- Group Archive list by posts tag
- Pagination not working past page 3 on archive page of category
- Change Title Based on Taxonomy Filter in archive-{cpt}.php
- Custom Post Archive – display page 1 differently then subsequent pages
- CountUp timer for custom post
- get first limited words from a custom post in the archive page
- How to display archive by selecting year and then selecting month
- Show index and not the archive for “Dog Custom Post” with default slug
- Custom post type archive page not showing on archive-posttype.php
- Custom post type with two templates
- How do I make my archive page look like popular reviewing sites (e.g., Polygon and Gamespot) [closed]
- Display custom post type archive on page.php template
- Making a archive gallery page for a custom post type which already has an archive page
- Custom post type archive url when post type has archive string
- Permalink Rewrite with Archive – Archive gets 404
- get custom post archieve by month
- Displaying categories items among posts
- Customing Annual Archive plugin
- Using post type archive page for taxonomy archive
- URL rewrites af
- Notice- undefined variable post and trying to get property of non-object
- WordPress Rewrite Url with arugments
- Pagination not working only on Archive-Name.php using new WP_Query
- How to link to an archive-special.php from a custom front-page template?
- Add custom display condition to Elementor Theme Builder for custom taxonomy children, grandchildren, and great-grandchildren
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query
- How to remove custom post type archive
- How to use a custom post type archive as front page?
- How to get the custom post type from an archive page?
- Custom Post Type Archives with 0 Posts Redirects as 404
- Get monthly archives for custom post type
- How to get_queried_object on multiple objects?
- Post type archive page not working
- Landing in 404 Page on Navigating to Custom Taxonomy Archive
- Archive or taxonomy pages not working for custom post type
- How do I change the sql query for wp_get_archive()
- I am facing problem in my archive page , it is partially working
- Ordering Posts Type A by Custom Fields of related Post Type B
- is_page() not working with archives?
- 404 on term taxonomy archive pagination only with some terms
- Create template for taxonomy results limited by Custom Post Type
- Get number of post who belongs in two taxonomies!
- Custom post type: Disable single page, but keep archive
- Only one post is showing on category page, why?
- Custom Post Type has_archive
- Display a custom posts page for post type
- Add parent post to Custom Post Type [closed]
- Display custom post types in wp_list_pages
- How to customize taxonomy archive template files for subterms?
- Use the custom post type archive for taxonomies?
- Taxonomy template page not working
- How to Fix an Archive.php That Displays All Posts?
- Custom post type category permalinks and archive pages
- Strange behaviour of hierarchical taxonomy archive
- WordPress Page hierarchy ( parent is singular of custom post types slug ) is returning not found
- How to get the archive post type/format in the loop?
- Change the Page Title of the Archive Page for Portfolio Tags
- Pagination not working on my archive page for a custom post type
- Modify category archive page loop on functions.php
- Custom Post type and Custom taxonomy with URL rewrite worked but template did not
- paging is not working properly on news archives page [duplicate]
- CPT Archive with parent page
- custom post type not getting archived?
- Remove plugin’s custom post type archive page and single pages [closed]