
Thanks to João Craveiro for pointing out a possible problem with the daily archive links structure.
I haven’t heard of anyone having problems with it, but let me know what you think. I may need to modify the link (along with everything else I need to do) for the next version of T1.
The Problem
The per day dates link separating your posts seems to be a bit fragile depending on what type of permalink structure you have.
Here’s what T1 has now:
<div class=”posted-date”><h2><a title=”Permanent link to <?php the_time(‘F j,Y’); ?>” href=”<?php bloginfo(‘url’); ?>/<?php the_time(‘Y/m/d’); ?>”><?php the_date(”,”,”); ?></a></h2></div>
The Solution
João Craveiro came up with this alternate way of calling the daily permalink:
<div class=”posted-date”><h2><a title=”Permanent link to <?php the_time(‘F j, Y’); ?>” href=”<?php echo get_day_link(get_the_time(‘Y’),get_the_time(‘m’),get_the_time(‘d’)); ?>”><?php the_date(”,”,”); ?></a></h2></div>
This seems to work great on his site, and it makes sense in the way it’s calling the permalink.
Let me know what you think about the change or if you see any problems with it. I’ll probably be incorporating this into a new T1 version to keep all your tumblelogs running efficiently.



One Comment
Well, indeed, now that I look at it again, it still needs one improvement. The the_date() function only outputs the date for the first time it is called for each date (so that there’s only one indication of the day for two posts on the same day). But when this is the case, the link is still created around nothing (which I even think will break HTML validation, something some people value much).
The solution to the solution would this be something like:
the_date('',"<div class=\"posted-date\"><h2><a title=\"Permanent link to" . get_the_time(’F j, Y’)."\" href=\"" . get_day_link(get_the_time(’Y'),get_the_time(’m'),get_the_time(’d'))."\">",
'</a></h2></div>');
which is: using the the_date template tag with its parameters “before” and “after” adequately set. This way, when two posts share the same date, the second (and subsequent) to appear doesn’t(/don’t) bear the date nor an link without text.