i'm busy writing my own theme and i'd like to get a link to the archives based on the post date.
i've got the following (><?php the_time('jS F, Y') ?>), which doesn't give the right path nor the correct date format - missing /.
then i dug a bit into wordpress and came up with the following:
$tempURL = get_day_link(the_time('Y'),the_time('m'),the_time('j'));
$tempDate = sprintf('%1$d-%2$02d-%3$02d 00:00:00', the_time('Y'), the_time('m'), the_time('j'));
$tempText = mysql2date('Y/m/d', $tempDate);
echo get_archives_link($tempURL, $tempText, 'html', '', '');
but this time it gives the correct path but the date is todays date and not related to the post.
can anybody help me with this please.