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
- How to create archive child pages with good Yoast SEO meta?
- 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
- Archive page for custom post type shows regular posts, too (by category)
- How to return custom taxonomy term in title for archive?
- How to remove custom post type archive
- How to use a custom post type archive as front page?
- Custom Post Type Archives by Year & Month?
- Get custom post type slug for an archive page
- Create a custom archive page for a custom post type in a plugin
- Adding a menu item for a Custom Post Archive
- Custom Post Type Archive Page not showing
- Adding custom post type archives to a WordPress menu
- How to set a custom post type to have viewable future posts
- How To Create A Paginated List Of All Categories On My Site?
- Custom Post Type Template – Archive
- How to get the custom post type from an archive page?
- Page Template as Custom Post Type Archive
- Custom post type yearly/ monthly archive permalinks
- Add custom field to the archive page?
- Can’t get post id on page that is a custom post type archive
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- How to rewrite slug of custom post type archive page
- How do you create an archive for a custom post type from a plugin?
- pre_get_posts with tax_query causes empty result
- Proper way of making custom post type landing page or archive page
- Custom Post Type Archives by Date with Custom Permalink
- Sort Custom Post Type Archive by Taxonomy Term [duplicate]
- Loading custom page template via plugin
- How to List All Custom Post Types Names (Not Posts)
- How to seamlessly redirect between different archive and singular slugs?
- Change title in head on Archive page
- Archives for custom post type based on a “date” meta value
- Custom Post Type Archives with 0 Posts Redirects as 404
- How to filter custom post type archive by meta value
- What are the advantages of using a custom post type archive?
- Page is defaulting to archive page and not designated template
- custom post type archive page url to point to Page permalink
- “Edit” option for custom post types archive page
- Archive template for taxonomy terms