[wp-trac] [WordPress Trac] #4567: wp_get_archivse pulling stuff
from posts w/edited timestamps
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 29 20:14:19 GMT 2007
#4567: wp_get_archivse pulling stuff from posts w/edited timestamps
-----------------------+----------------------------------------------------
Reporter: kchurch05 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: General | Version: 2.2
Severity: normal | Keywords: archives
-----------------------+----------------------------------------------------
I'm overhauling an html site into Wordpress. Several of the 'articles' on
the old site date back to 2002, 2003, etc., so I backdated those posts in
order to correspond with their original publishing date. Currently there
is only about 3 months of 'new' content this year, starting with March
2007. (Old site was not updated very often.)
Using
{{{
<?php wp_get_archives('type=monthly&limit=12'); ?>
}}}
on my Archives page to get the past year's archives, but instead it pulls
12 months, regardless of year, that I've posted so far.
As a result, the output is:
Archives by Month:
* June 2007
* March 2007
* August 2006
* September 2005
* June 2005
* August 2004
* September 2003
* September 2001
* September 2000
When I really want it to be:
* June 2007
* March 2007
[eventually, this list will grow into July 2007, August 2007 as the months
progress - so I do not want to limit it to 2 and keep having to change it
each month.]
The same thing happens when I use wp_get_archives(type='daily'&limit=30)
to get the last 30 days' worth of posts - it ends up pulling stuff from
2005. (Again, not many posts up on the site from this year.)
Thanks!
-K
--
Ticket URL: <http://trac.wordpress.org/ticket/4567>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list