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
- Change link to permalink inside post content
- How to organise post by category and date
- Daily posts like an archive
- How to set a link to custom archieve page
- Moving Posts to a new site and maintaining URLs
- One of my posts is displayed as page
- Make Show Notes for Individual Podcast Episodes Easy to Find (multiple URL’s?)
- Make assigning post to a specific category equivalent to assigning it to all categories
- How to mix pages and sub-categories in a url
- Custom Permalink Base
- Modifying the permalink href for posts with jquery
- How to get alphabetic listing x other posts, based on first letter post?
- Changing permalink of custom category
- Change the default video URL in a post to shortcode format
- TCPDF and permalinks
- How do I display the next 3 posts in the sidebar?
- WordPress sub-posts and permalinks
- Choose options via url
- How to display subcategory articles in the category view?
- Change posts URL [duplicate]
- 301 Redirecting posts without %postid% (just %post_name%) in permalink to ones with %post_name%_%postid%
- How do I add /blog/ on my permalink without affecting the portfolio project types permalink?
- Getting 404 when using rewrite rule for posts
- Include language variable in url
- Display all posts from selected month
- Permalink remain the same on each page
- How to get pagination working with “Pending” Posts
- Show all posts in category
- custom sort posts in archive/taxanomy page
- How can we pass a value from the_permalink() at WordPress?
- Read more link not working [closed]
- how to show all post with its contents
- How to get the perfect WordPress, WooCommerce, Custom Post Type pretty permalinks?
- After the local installation of an old WP website I can see the homepage but I can’t access to the articles, why?
- How to redirect image attachment to its original post
- Add author section on Author archive posts
- Changes done in admin panel are taking time to reflect in the REST api responses
- Do I need to create a multisite for querying posts from multiple WordPress sites?
- How to change Permalinks only for Blogposts
- Display post count on archive page in reverse order
- Post page still linked to old site
- Permalink structure for two separate blogs
- Filter/Sort Post Form On Taxonomy page
- How can I fixe the article title problem?
- How to change url of posts?
- Change permalinks in posts via SQL
- Why can posts never have a number as the link?
- Post pages are redirecting to the 404 page in wordpress
- Global $post value outside the loop
- Custom permalink for ‘post’ not working
- Category and archive issue
- Permalink issue with new blog posts > getting 301 redirect
- Remove Archive Posts Page
- Best way to approach creating a sitemap with unique URLS (No Permalink Changes)
- Post type gives 404 unless logged in
- change the blog in the url if you go from a specific page wordpress
- Display posts on a custom page from only a specific category?
- Change the slug of post type using custom code