Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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? –  bungeshea_ Jan 7 '13 at 8:04
    
Exactly bungeshea –  JohnSmith Jan 7 '13 at 8:08

1 Answer 1

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

 
discard

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.