• i’m running multiple Loops on my site (each loop is on a different layer, returns the posts of different categories, and is set up so that clicking on links on a nav bar changes the z-index for each layer to make the selected one visible).
    however, when i try to use the_date(); to return the date for the normal Loop, it only echoes the value the first time its called. i know this is normally how it’s supposed to function.
    my question is, is there a way to call the date for EACH loop i have and still have the date behave like it does when you call the_date();?

Viewing 3 replies - 1 through 3 (of 3 total)
  • use the_time?

    The time tag works the same as the date tag, you just have to tell it to display the date with the time. (ie. use all those letters, it’s like j A, Y or something.)

    Thread Starter fightinfilipino

    (@fightinfilipino)

    i’ve been actually just pulling the time and date from the post_date variable and strtotime(), but that echoes the date and time for every post. i’m trying to get it so that it still behaves like the_date (i.e. only shows up ONCE for all the posts of that day) but still have it work for all the Loops on my page.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘multiple loops and the_date();’ is closed to new replies.