6

I'm using twentyten and have overloaded home.php to do some custom stuff. However, I would still like to have a page that lists all of my recent posts, archive-style.

I can get to an archive page for any given category with myblog/category/category-name.

But I'd like to get to an archive that just lists all recent posts, regardless of category. Like myblog/archive

Am I assuming too much? I know I can create a custom page template and then create a custom page and apply that template. I just thought that wordpress had a built-in "archives" page, no?

4 Answers 4

7

No, there is no "full archive" page like you describe created by default. This would basically be the twentyten index page set to display "your latest posts." If you don't want to access the archives via some sort of filter (category, author, year, month etc.) then you will need to create your own archive template and page like you described above. you could also use the twentyten index.php as the basis for your new template.

So you can create the archive page, set it to use your new template and use the url myblog/archive like you wanted.

1
  • Okay, sounds like I was dreaming when I thought you could get to some kind of built-in archive page. My question was a bit of a long shot.
    – Tom Auger
    May 15, 2011 at 18:42
2

From the Codex: Creating an Archives Page.

Basically:

  1. Create a custom template file.
  2. Create a static Page.
  3. Assign the custom template to the static Page
2
  • 1
    Yea, that's basically what I said in my OP.
    – Tom Auger
    May 15, 2011 at 18:40
  • 1
    Right, but did you read the link I posted? It gives examples for how to build your custom template for outputting post archives. May 15, 2011 at 18:47
1

Updated 2018: Latest Version of Wordpress Heirarchy

Updated 2018: Latest Version of Wordpress Heirarchy

-1

According to this image, the file you want is archive.php categories have there own file along with others WordPress Template Hierarchy Link to the image

The Twentyten template uses all of the features WordPress offers as an example of what you can make your theme do

4
  • Lastly you should also consider creating two blank pages in wordpress one named home and another named blog, news whatever you want then go to your settings tab and in the reading settings there should be a option for static pages one for home or front page and the other for posts take your two new pages you just created and select them in the appropriate drop downs then save. May 13, 2011 at 21:37
  • although to know the template can be useful, there is no way to directly link to the template.
    – Michael
    May 13, 2011 at 21:38
  • Please do not down vote something that was an aid. If you continued reading my post you would have seen that i said create a new template and use the static pages which is the common way of doing this. May 13, 2011 at 23:12
  • Your response doesn't actually address the question - if you try typing www.myblog.com/blog/archive.php you get an error. Also, the Reading settings you describe do nothing more than change the way your home page functions.
    – Tom Auger
    May 15, 2011 at 18:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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