Change in Regulus template?
-
I noticed today a change in the Regulus template. Each post now has a date on it, whereas before, only the last post of the day had a date. Anybody else notice this?
I liked the old way better. (And if they were going to change the template, why not add the time to the post?)
-
-
vivian,
yes, indeed Regulus has been changed this way just recently.
but now you can finally set your own date format instead, ain’t it cool? ;-)
xref: https://en.forums.wordpress.com/topic.php?id=16669&page=2&replies=43#post-135473
-
options, sorry, I don’t seem to get the point. Vivian sais something about the date appearing only on the first post, the thread you are pointing at is about changing the way the date format is displayed, which can be changed, at least for themes as Regulus, which uses the right php funcion (the_time), in the blog options, at least since two years. I didn’t read anything about recent change of the behaviour.
-
Each post now has a date on it whereas before, only the last post of the day had a date.
I see 5 separate articles on Vivian’s front page and all are dated November 15, 2007. I also note that for the past two days bloggers have been posting to the forum about mysterious theme changes.
-
since 15 November 2007, ‘Regulus 2.1.3-wpcom’ deployed here is using:
<?php the_time(get_option("date_format")); ?>before that it always (at least since 19 September 2006) was:
<?php the_date(); ?>Ben’s original v2.2 still uses:
<?php the_time(__('F j, Y','regulus')); ?>please, see the Codex for the difference between those functions.
-
Glad to know I’m not crazy that the template has indeed changed and the date shows on each post now. (I’ve been using Regulus for almost two years and I was certain it had changed. If you check the wayback machine, you should be able to see it.)
It seems to me if the date is going to show for each post, the time should also show, but I guess they didn’t make that change when they updated theme. I read thru the thread linked by options but honestly, I don’t see where that makes any difference. I just don’t get what the difference in the codex is?
Hmm – I see that if I include the time format in the date format line, I can get the time to show. I guess that will work for now.
-
basically the difference between those template functions is that:
When there are multiple posts on a page published under the SAME DAY,
the_date()only displays the date for the first post.while if you want
To repeat the date for posts published under the same day, you should use the Template Tag
the_time()with a date-specific format string.emphasis mine, cause it sounds pretty wild.
> if I include the time format in the date format line, I can get the time to show.
yes, exactly — a great catch, Vivian!
it seems like this is a rather peculiar, but the only way to get the time to show in this (and apparently in many others) .com theme.
[the fairly combobulated thing is, despite of their names, those templating functions may (or may not) actually display both as date, as time.
as you correctly found, it depends on the ‘date format string’ parameter, which may be either set up in the options by the blog operator, or, instead, pretty much possible that it may be previously hardcoded in the (editable by the .com staff only) theme template by its author.]
-
- The topic ‘Change in Regulus template?’ is closed to new replies.