Support » Plugins and Hacks » [Resolved] The_time Value?

[Resolved] The_time Value?

  • Hello there,

    I was trying to get my index page to display the date and then show all posts for that day under it. So it might look like this:

    January 17
    Post 1
    Post 1 Text here
    Post 2
    Post 2 Text here

    January 16

    I thought this would be an easy way to do it. In my template header page I put in this code:

    $newtime = the_time(‘F jS, Y’);
    if ($newtime !== $lastname){
    <div class=”post”>
    $lastname = $newtime;

    But all it does is print out the date doesn’t even put it in the post divs. So I think this line “$newtime = the_time(‘F jS, Y’);” is just printing out the date.

    Is there any way to accomplish what I’m after? I guess I would just need the value of the_time function, unless someone had a better way. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] The_time Value?’ is closed to new replies.
Skip to toolbar