archive.php is used to display author, search, category, tag and date archives. As clicking on a calendar day will take you to the date archive for that day, then the file you’re looking for is archive.php.
More specifically, WordPress will check for these files in this order, stopping when it finds one of these files in your active theme’s folder:
date.phparchive.phpindex.php
Related Posts:
- How to get post ID of the current page/post inside a widget?
- widget should display post archive by year and on click also by month
- Get all posts by post_author
- Displaying a widget only on long posts (over X characters)
- How can I display widget in a Page or Post?
- Ajax load more button in Recent posts widget
- I want to display custom text widgets for each post in the sidebar?
- WordPress Sidebar menu for posts based on date – guidance needed
- remove post and categories/tags count from right now dashboard widget
- Widget that shows categories with posts numbers
- Getting Duplicate Posts on Home Page with Widget Added Between Posts
- Display current post position in Elementor Posts widget
- Custom posts listing widget always returns 1 extra result
- Need to know custom code to display random and most viewed posts in wordpress posts and pages
- Load widget only on blog posts
- When using Tribe Events Calendar, querying for a specific event category returns nothing
- Widget to show posts in the sidebar basing on its IDs
- How to show multiple posts thumbnail, title and date in widget
- Move position in post list for a custom checkbox column
- Add checkbox in admin post list – show checked post in widget
- Create a List of Widgets, where each widget holds three attributes
- Custom Fields – How to get the list of a specific active widget each time it rendered
- How do i bring out post category name in my widget?
- post__in no longer works in wordpress 5.0.3
- Posts on Sidebar only
- How do I create a ‘selection’ criteria list’ that will then dictate which posts are generated when the user presses search?
- Creating widget – ask for selecting a post in the admin panel
- How to display most popular posts from certain category in sidebar?
- Post List Widget with custom posts and editing the Read More Link
- Hide first blog post in content and output it in widget
- How to use in_category?
- How can to use the players from the Media Widgets in the body of a post to play audio and video files
- How to have more post in a page than in your home page
- How to add a widget area between blog posts in Genesis Framework?
- wordpress pinboard theme [closed]
- Output number of WordPress posts remaining until a post milestone is reached
- Image inside the content is replaced with featured image from my older post
- Display post archive as a month table, show last three months
- Change Posts per page count
- Can I force a metabox to be in one column?
- Search by Hyphen
- Post publish only hook?
- Restrict access to post if it is currently being edited
- Query only Posts from Both of Two Category?
- wp_update_term is always launched after wp_insert_term
- Exclude posts with specific meta_value while sorting by a separate meta_value
- Display custom post types by date field
- Does WordPress remove draft status automatically?
- How do I allow users to follow a post and then allow admins to email all users who have followed that post?
- Is there any WordPress alternative to Book module of Drupal?
- Post Navigation
- How to start with post number x?
- Posts page only shows one post
- How do I detect which page I’m on within a paginated post?
- how can I add data to posts that can be retrieved by WP Rest API
- wp_get_object_terms returns only Uncategorized on first publish
- Pausing and Resuming WP_Query results
- Can’t get buddypress notifications in front-end; why do I get this error?
- Getting Custom Post Loop to display in Bootstrap 3 column grid
- Sharing post from archive page (loop) doesn’t work
- Get all images in post and comments like Twitter before post title
- How to list recent posts in a wp nav menu?
- “Right Way” to make custom Loop respect reading settings inside admin panel?
- WordPress query_posts by tag doesn’t work anymore(?)
- why does wordpress ignore the post args?
- obtain the author id given the post id
- Get current post data into array?
- Post list display year wise
- How can I add a box to edit Order on a regular post?
- How to add automatically bootstrap 4 order-lg-1 and order-lg-2 classes for columns in foreach loop based on the count?
- Add code to a specific post’s content
- Post Status Frontend Announcement
- When WP_Query only returns 1 post, how do I automatically redirect to that post?
- Optimize CPT-function with a loop
- If post exists, make it a comment in existing post with same name?
- How to display only one category in a custom post type?
- Use Post as Front Page
- definining own teaser text for post
- I need to create “View Profile” and “Edit Profile” links by incorporating the Post Title/ID, but can’t seem to manage it
- Turn off display for custom sidebar post widget when on the post it’s displaying
- How to order posts in WordPress by date?
- Search results with pagination not working
- My post permalinks are redirecting to the post archive page for some reason?
- Exclude posts in a category on one page but show those posts on a different page
- Hide or remove custom post status
- show loop id post , only first id can read
- Add id attribute to h1 element of wordpress post
- Creating interactive drop down lists in a post [closed]
- Disable archiving of old posts?
- Customizing individual images on posts
- Converting Posts to Pages
- Changing a field value on submit using a PHP variable
- Run Jquery Script after delete post in front end
- how to show posts on different pages if number of post per page is one
- Not displaying any articles on a custom made file
- How can we pass a value from the_permalink() at WordPress?
- How to redirect image attachment to its original post
- How can I make my blog private? [closed]
- How to get a list of all posts and their categories?
- Change Pages to Post in Woocommerce without Plugin