Support » Fixing WordPress » Please Help – current_time great or equal to post_date

Viewing 4 replies - 1 through 4 (of 4 total)
  • Basically, if this is the SQL i need the WordPress PHP version:

    post_date > ‘”.current_time(‘mysql’)

    anybody??? please !!

    somebody must have an answer..

    ok despite getting no help i found the solution

    <?php
    $posttime = strtotime($post->post_date);
    $currtime = time();
    $today = date(‘M d’,$currtime);
    $postday = date(‘M d’,$posttime);
    if($postday>$today) : ?>

    all posts will have to have a timestamp of later than today’s date

    <?php endif; ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Please Help – current_time great or equal to post_date’ is closed to new replies.