Home Forums General Issues Don't show post when they have passed Reply To: Don't show post when they have passed

  • Hi fabianmarz,

    jour_de_levenement is a Date field and the code :

    <p class="date-event"><?php echo $date->format('j'); ?>
    <p class="month"><?php echo $date->format('F '); ?><?php echo $date->format('Y'); ?>

    Return me the day, month and year like that : 06 September 2016

    I wanted to split the date into different <p> and then to be able to customize the date and it’s working.

    For the value, I use get_field with my field jour_de_levenement.

    Maybe I need to put this (my div date-custom-page) before the query_post ?

    Thanks a lot for your time !