tim_galdunick wrote: > Hey everyone! I'm looking to setup some "archive" pages on my site. Right > now, I have a huge list of posts that gets populated that includes three > years worth of posts. I'd like to setup archive pages for 2008, 2009, 2010, > that would display a list of the posts from that year. I think it's probably > simple filtering, but I'm not sure how to go about that. >
The easiest way to do this would be to get the items as an array using $feed->get_items(), then use array_filter() to get rid of anything outside the time range you want. For example, for only items from the last 24 hours, you'd do the following in a callback function. if ($item->timestamp > (time() - 86400)) { return true; } return false; -- Ryan McCue <http://ryanmccue.info/>