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.php
archive.php
index.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
- Add custom Attachment Display Setting for images
- Rewriting post slug before post save
- Removing filter dropdown in posts table (in this case Yoast SEO)
- Show related posts by category but ignore one category
- Replacing all attachment links in post with media file link
- Post content being duplicated by the_content();
- exclude particular posts in archive.php
- How to display post tags
- Sql syntax error
- Random post permalink
- Debugging WP routing
- WordPress menu that shows all posts in a certain category like w3schools
- Filter Posts by Excluding Categories
- Filter Posts By Tag
- Custom Post Templates
- How to limit displayed posts on wordpress
- Exclude newest post from category X but show rest
- post-page: reference to parent page?
- Dashboard :10 Last draft page and 10 last pending review page (metabox)
- Set terms in a custom post
- post categories
- Move first half of posts to one parent page, second half to the other page
- Check if checkbox is marked on publish/update post
- CSS: How can I show a photo beyond the template’s column, but contained within the browser window? [closed]
- Can I search posts and pages for css classes?
- Need to remove duplication content on home page in wordpress theme
- how to get post order by post id wp_query?
- Is it possible to add/tick a category to a post when it is created?
- How to display all posts divided/ordered by post date? [closed]
- Why I can not I use the variable outside my function?
- The_excerpt() doesn’t parse – how to change that?
- Can’t understand why sometimes a [caption] field appears
- Trying to edit archive.php to only show post extract, with featured image
- Extracting relevant tags associated with that particular single post only
- Why in my query is display two title?
- Custom Articles page only showing a limited number of posts per page
- Post Title List on home page with time
- Automatic blog page with custom design [closed]
- Use posts_where to exclude posts ids from wp_query
- Delete all Tag Links from Posts
- WordPress doesn’t save or publish new posts
- Yoast breadcrumb URL shows category instead of the page
- Add data attribute of post_id for Internal links
- Contributor edits published post and sends for review – post is made private?
- Why does my “Add New Post” page have an old post in it?
- link to edit a post has empty target
- Nestling Posts Under Page & Justify Text
- Adding posts updates previous post
- Is it possible to make a custom post that adds multiple pages?
- Creating a link to the first post in a category
- How do I make it so that new posts within a certain category go into a certain page?
- List Authors For Current Category
- cleaning out posts that don’t exist anymore but links are still there
- Reading Setting Not Working for Number of Posts
- 404 for some custom taxonomy not ALL taxonomy
- Add tags to post before it’s created
- can’t post immediately
- save_post not working
- Password-protected Posts lead to 404 Error
- Multiple blog “feeds” in a single blog each with distinctly styled post pages
- How to get pagination working with “Pending” Posts
- Post’s arent displaying
- Show with echo if a post has two or more categories