Beiträge von cediban

    Hallo,
    ich probiere in unserem Blog Artikel pro Datum auszugeben.
    Leider Funktioniert is_new_day() nicht so wie ich es mir vostelle:

    PHP
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php if (is_new_day()) {
    ?>
    <h1 class="date"><?php the_time('l, j. F Y'); ?></h1>
    <?php
        echo "<h2> debug:day:" .$day . "previousday:" . $previousday . "</h2>";
    }?>

    is_new_day ist immer TRUE
    day gibt das aktuelle Datum aus
    previousday gibt nichts aus.

    Ich weiss nicht mehr so richtig weiter,
    vieleicht kennt jemand hier dieses Phänomen?

    Schöne Grüße
    cediban