WordPress generates date archives automatically, it’s just a thing it does. You see the index.php
template probably because there isn’t a more specific one for date archives in your current theme. There are plugins that disable these archives, Yoast SEO is one.
A quick fix is to empty the date archive rewrite rules:
add_filter( 'date_rewrite_rules', function( $rules ){
return array();
} );
Visit the Settings > Permalinks page after adding this to flush rules.
Related Posts:
- Permalink Short code showing unnecessary link text inside the loop
- How to add a ‘News’ section to specific posts in WordPress
- Blog posts are not appearing as subs of Blog Page
- How to Check if a Page Exists by URL?
- Custom permalink structure only for default posts
- Pretty URL with add_query_var
- get_permalink returns default link
- Must permalinks always point to single post pages?
- How to allow slashes in single posts when i click in the edit permalink button
- Link for the page archive for posts, like using custom post types with get_post_type_archive_link
- change default post archive page link
- Dynamically generate child-URLs for posts or custom posts
- Changing Permalinks for Default Post type to reflect navigation
- WordPress not opening posts with only numbers if permalink is post_name
- Visting slug for ‘post’ post type shows 404 not archive?
- Permalink doesn’t get displayed in Twitter button (Local WordPress problem?)
- Retrieve post ID from “querying” URL
- How do I Redirect a WordPress Page?
- Post is blank when I click on the link
- Post-Archive like a page in a specific subdirectory
- Custom Post Type, post-formats associated to custom post type > 404 archives
- Can Permalink structure of %postname%/%post_id% improve performance
- Remove subcategory slug from url
- Can I show category name in url for only one of my categories?
- My post permalinks are redirecting to the post archive page for some reason?
- How can I make a post sub link?
- Does having category name in permalinks affect SEO when having a post in multiple categories?
- Add a url parameter to the current post and read it in a shortcode
- How to add category base prefix to wordpress permalink
- Category URL to use same string as Post URL Permalink
- Multipage Post URL correction
- Post & Category Archives URL structure
- Fixing the WP Post Object for Custom Route
- How to change post template via url?
- Posts in Page – How to customize the URL?
- Use a custom post URL that is outside the blog root directory
- My posts section for logged in user
- Rewrite a specific Post Format to URL slug
- Overwrite URL on blog posts
- Default post type doesn’t display in url
- How to add paraent in Blog post URL in wordpress
- Access post from post id in URL
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Post slugs and images cannot have same name?
- Multiple post categories – single permalink
- Update URL Snippet to Canonical Permalink URL
- Pretty Permalinks
- How do you get all the urls of images attached to a post?
- how to get permalink using sql
- Post custom permalink results in 404 for archive page
- how to grab first link in post… and of course call it
- Custom post type single (permalink) throws a 404 error
- What Defines What Category A Post Picks (if in multiple)
- Custom post type permalinks breaking due to 3.1 bug fix
- Custom Post type and permalink settings
- Paginated Posts – Social Media Buttons Share First Page URL
- Force wordpress to display page with same url structure as categories
- Problem with permalink routing?
- List category posts alphabetically on archive.php
- Switch to page template when using post permalink
- Increase 10 post limit per page
- When changing pages to posts, how do you set up 301 redirects for the page URLs?
- Archiving posts in wordpress
- Does WP automatically tag posts into the archive?
- Updating permalink structure using ‘post_link’ filter results in 404 error for posts
- I want to show my post for limited time, how is it possible?
- When WP_Query only returns 1 post, how do I automatically redirect to that post?
- Highlighting Current Category in the Archive and Feeds page
- Standalone form does not post to the url when form fields are populated (otherwise it does)
- Permalink structure and dedicated comment pages
- Change permalinks for posts & for custom post types
- Add static text to post URLs
- How to prevent to create same url of post, if the previous was deleted?
- How to allow WordPress to recognize a custom URL segment after a product URL and use a custom template?
- I want to rewrite the URL of a specific post with a specific custom field to easily analyze in Google Analytics
- How to bulk Update URLs to new values?
- Customize URL for specific tags archive
- Add #primary at the end of navlink permalinks on single posts
- How do you change the permalink for posts for a single category?
- Posts are not displaying on their category and tag page
- How to set the post permalink using the WordPress REST API?
- unable to display two post per page in wordpress front-page.php
- How to 301 redirect from url with post id to permalink with post name (slug)?
- show image gallery in archives or category page
- Custom Post Types and Broken Permalinks
- Permalink structure for two seperate blogs
- My post permalinks are always the same
- How do I apply a wordpress function to something with no ID inside an archive page?
- All my posts don’t show, only the headline is displayed on the homepage
- is_archive() not working on selected “Posts page”
- Is there a Standard Format for Clean URLs for Archives of Custom Posts?
- Daily posts like an archive
- How to set a link to custom archieve page
- Change the default video URL in a post to shortcode format
- TCPDF and permalinks
- WordPress sub-posts and permalinks
- custom sort posts in archive/taxanomy page
- Do I need to create a multisite for querying posts from multiple WordPress sites?
- Display post count on archive page in reverse order
- Filter/Sort Post Form On Taxonomy page