Support » Installing WordPress » Strange behaviour with the_date

  • i got a very strange behaviour with my first own blog template. on the index page i’m using this code within the loop:

    $startDate = mktime(0, 0, 0, 6, 8, 2007);
    $postDate = the_date('(0, 0, 0, n, j, Y)', '', '', FALSE);
    echo " ".$postDate." ";
    $postDate2 = mktime($postDate);
    echo " ".$postDate2." ";

    on the index page, the variable $postDate changes the value correctly according to the post time. (right below the headline).

    i got no idea, why $postDate2 always stays the same, whilst it should be the timestamp of the corresponding post.

    anybody an idea?


  • The topic ‘Strange behaviour with the_date’ is closed to new replies.