Home › Forums › General Issues › Don't show post when they have passed › Reply To: Don't show post when they have passed
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 !
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.