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
- Modify Post URL Programmatically
- remove “index.php” from permalinks
- Getting the Site URL Including the Front Base
- Different permalink for posts and authors
- Open WordPress ‘Add New Post’ admin page with parameters set via $_GET
- Post Format Archive template name for theme folder?
- Keep getting same permalink with WP_Query?
- Permalink Settings: optional settings doesn’t apply to editor
- How to change the page break URL from ../post/2 to …/post/page2/
- Display posts from #6 to #20 on archive page
- Random post category URL
- Getting category posts from a certain year
- Removing rel=”nofollow” from links posted in Post Content
- How could I change my Permalink from blog to custom structure? [closed]
- Remove subcategory and category with some rules from permalink
- mod-rewrite exception? keep #hash in matching urls?
- Automatically create a new page daily with last three posts
- When changing pages to posts, how do you set up 301 redirects for the page URLs?
- Archiving posts in wordpress
- custom word in custom permalink structure
- 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?
- How to edit the ‘
- When WP_Query only returns 1 post, how do I automatically redirect to that post?
- Standalone form does not post to the url when form fields are populated (otherwise it does)
- Permalink structure and dedicated comment pages
- How to prevent to create same url of post, if the previous was deleted?
- WordPress posts have a different URL to the index
- 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
- Custom permalink for wordpress page / post
- 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?
- Append a random string to a post permalink
- All my posts don’t show, only the headline is displayed on the homepage
- Is there a Standard Format for Clean URLs for Archives of Custom Posts?
- WordPress rewrite url help needed
- Permalink of some posts change
- Daily posts like an archive
- How to set a link to custom archieve page
- Moving Posts to a new site and maintaining URLs
- 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
- Read more link not working [closed]
- Changes done in admin panel are taking time to reflect in the REST api responses
- How to change url of posts?
- Category and archive issue
- How to change the url of the archive page to be inside the custom post type