WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm building a new theme. I'm now working on to figure out which file is needed to show the "whole" post for a specific date which displays when you click on a date in the built in WordPress calendar widget?

Somebody who has a clue which it is?

share|improve this question
Are you talking about the calendar sidebar widget? – shea Jan 7 '13 at 8:04
Exactly bungeshea – JohnSmith Jan 7 '13 at 8:08
up vote 0 down vote accepted

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:

  1. date.php
  2. archive.php
  3. index.php

Read more at the WordPress Codex

share|improve this answer
Perfect, thank you! – JohnSmith Jan 7 '13 at 9:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.