archives by year
-
Hi, I am looking at the support page for archives and I see a number of options. One of the options is (I’m quoting from the support page) “type The type of archives list to display yearly, monthly, weekly, daily, postbypost”
I would like to have a yearly archive. We’re almost into 2010 and I would like to have an archive for 2009 that and have a new one that updates automatically for posts for 2010.
It gives that as an option but does not explain how to set that up with the proper wording within the brackets. Anyone know the code that I would insert in the brackets so I can start a new archive for 2010 only without pulling in the 2009 posts?
Thanks,
The blog I need help with is: (visible only to logged in users)
-
“We’re almost into 2010 and I would like to have an archive for 2009 that and have a new one that updates automatically for posts for 2010.”
I don’t really know what you mean. Could you post the link you are finding the quote at please? I have never ever since 2006 done anything at all to set up my archives. Every time I publish the post is archived. There has never been a run on into another year situation. What I experience is a few hours or a couple of days of delay before the Archives click over in a new year and when they do every post is in exactly the right spot.
-
To get a yearly archive, enter the following on the page where you want the archives to start.
[archives type=yearly]What the above will produce is this:
2009
2008
2007It will not list the post titles. To get those, the visitor has to click on one of the “year” links.
-
-
I should mention that you can also put the above in a text widget. If you put it into a page, then I suggest you put it into the HTML editor.
-
Thanks — your way is easier. I sort of figured it out which is why I clicked resolved on this thread. I’m going to go change what I did —
THANKS!!
-
I used your code. Is there a way to have all the posts on one page instead of only 3 per page? That’s a lot of wasted space and a lot of hitting “previous” button.
-
You have to change the number of posts per page at settings > reading. It will change it for all post related pages, main page, categories, tags and archives pages.
-
Thanks. Since I did not want to change it so a bunch of pages don’t appear on my blog everywhere, this is the code that I came up with and it seems to work. [archives type=yearly=2009]
I first created a baby page titled “Posts – 2009” and made it a baby page to “Archives.” Then on my archive page I linked to the baby page which has the [archives type=yearly=2009] on it. As soon as 2010 rolls around, I’ll do the same so it will automatically update on its own with posts from 2010.
If you want to see what I did, here’s the link: http://fruitoftheword.com/archives/
-
- The topic ‘archives by year’ is closed to new replies.