Support » Themes and Templates » Archive.php & Archive(s).php

  • Resolved t31os


    Can someone please explain the purpose of both these files.

    Why 2 seperate files, what does one handle that the other doesn’t. Just need a clear cut answer since the Codex isn’t quite cutting it, nor my google efforts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi t31os,

    archive.php –> Is an archive template WordPress uses to display data when a category, author, or date is queried. This template is overridden by category.php, author.php, and date.php according to the Template Hierarchy. Take a look at Theme Development and scroll down to Theme Template Files List.

    archives.php –> Is a custom Page Template created by you (if it was not already created by your theme’s author) that can be used to showcase your archived material. Typically it would contain a list of links organized in whatever manner you specify. For instance, the one I created for my theme lists my archives by date and topic. Think of it as a gateway page.

    By the way, nice tut –> tabbed sidebar

    This pic is all i needed…

    from the link you posted..

    If i had found that i would have never asked….

    I’m a really visual person so seeing it in image form totally clears up my understanding…

    Of course your explaination helps a great deal to.. 🙂

    Thanks for the links… just what i needed…

    If you like the tut, feel free to post a link to it, or whatever the fancy blog method is for mirroring wordpress articles… “I’m still a blog noobie per say” … but i know my code alright.. 🙂 i like playing with code…

    LenK, you just answered the question I came here to ask – thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Archive.php & Archive(s).php’ is closed to new replies.