Strange behaviour with the_date (1 post)

  1. ff-webdesigner
    Posted 8 years ago #

    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?

    example: http://www.blog.ff-webdesigner.de

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 8 years ago by ff-webdesigner
  • This topic is not resolved
  • WordPress version: 2.0.9