Thanks for the tip on the plugin:
http://www.ardamis.com/2007/06/25/ad..._get_archives/ and modifying ATO --> BELOW the LOOP.
However. I haven't upgraded to WP 2.8.x or Atahualpa 3.4.x yet so I couldn't do the minor surgery as suggested.
But. I did take the idea from the plugin's code (shown at the above link) and made that work for me on Atahualpa 3.3.3 by directly modifying ..\wp-includes\general-template.php.
[I know it isn't a good idea to modify core code but I haven't had time to do the upgrades so this will work until I do.]
Here's the origina "postbypost" code (the three dots indicate omitted code):
Code:
} elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) {
...
if ( $arcresults ) {
foreach ( (array) $arcresults as $arcresult ) {
if ( $arcresult->post_date != '0000-00-00 00:00:00' ) {
$url = get_permalink($arcresult);
$arc_title = $arcresult->post_title;
if ( $arc_title )
$text = strip_tags(apply_filters('the_title', $arc_title));
else
$text = $arcresult->ID;
$output .= get_archives_link($url, $text, $format, $before, $after);
Here's the tweaked code (changes in red). This puts the date in front of the title with a colon and space in between:
Code:
} elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) {
...
if ( $arcresults ) {
$beforebefore = $before; // new 7/25/09 by DPH - see: www.ardamis.com/2007/06/25/adding-the-post-date-to-wp_get_archives/
foreach ( (array) $arcresults as $arcresult ) {
if ( $arcresult->post_date != '0000-00-00 00:00:00' ) {
$url = get_permalink($arcresult);
$arc_title = $arcresult->post_title;
$arc_date = date('m/d/Y', strtotime($arcresult->post_date)); // new 7/25/09 by DPH
$before = $beforebefore . '<span class="recentdate">' . $arc_date . '</span>' .': '; // new 7/25/09 by DPH
if ( $arc_title )
$text = strip_tags(apply_filters('the_title', $arc_title));
else
$text = $arcresult->ID;
$output .= get_archives_link($url, $text, $format, $before, $after);
If you wish to have the date afterwards modify the logic per the sample code on the plugin site above.
Note: for brevity's sake, the closing brackets have been omitted from the above sample, so if you wish to make a similar tweak don't copy this code verbatim; instead, backup general-template.php and then add the three lines of code in red placing them where shown.
You can see an example of this in use at my site:
www.fromtheranks.com. Click on the "Archives" tab on the Page Bar.
Hope this helps.