Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Forum: Fixing WordPress
    In reply to: the_date
    Thread Starter nosferke

    (@nosferke)

    I found the solution myself. It should have been:

    <?php
    $datetoday = date("d-m-Y");
    $datepost = get_post_modified_time("d-m-Y");
    if ($datetoday <= $datepost): ?>
    
    *** here comes the html code that will be used for each post ***
    
    <?php endif; ?>

    Thanks for the help! ??

    Forum: Fixing WordPress
    In reply to: the_date
    Thread Starter nosferke

    (@nosferke)

    Ok, im one step closer in finding the solution.

    I believe the code should be:

    <?php
    $datetoday = date("d-m-Y");
    $datepost = get_post_modified_time("d-m-Y");
    if ($datetoday <= $datepost)
    ?>
    
    *** here comes the html code that will be used for each post ***
    
    <?php endif; ?>

    But now i get an error for the line which contains <?php endif; ?>
    What should it be instead?

    You already tried & #38; ?

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