I want to display a list of post link group by year. Archive function don't do it Eg:
2010
Blender 2.53 released
Gamequery 0.5 released
synfig 0.62.02 released
...
2009
Gimp 2.67 released
Blender 2.52 released
How can I do it?
I want to display a list of post link group by year. Archive function don't do it Eg:
2010
Blender 2.53 released
Gamequery 0.5 released
synfig 0.62.02 released
...
2009
Gimp 2.67 released
Blender 2.52 released
How can I do it?
I think you'll have to make your own custom query to get the posts by year. Something like this:
Note: where I put "group by postyear", I'm not sure what that column name would be, so you'd have to figure out how that's stored in your blogs table. That may be a case where you have to parse out the year from a date field. Give that a shot. Then you can format your output like this:
Query all your posts, ordered by post date (descending I assume?). You print them one by one, remember the year, and when the year of the current post is not the same as the year of the previous post, you know you have to print a year label.
You may want to try the following code:
There are several more parameters to try. Please refer to http://codex.wordpress.org/Function_Reference/wp_get_archives for details.