Tutorial by Examples

Display the date by itself (custom field is tour_date): <p>Tour Date <?php the_field('tour_date');?></p>
Let's say you want to show a text field (announcement) based on the time (a scheduled notification message for instance). You need two date-time fields. In our example, one is called start_date and the other end_date. <?php $DateNow = date('Y-m-d H:i:s'); $DateStart = get_field('start_date',...

Page 1 of 1