• Right now the calendar pulls in my custom post types and displays them in the calendar on the day they were created. I’d like it to display them on the date i enter in date box. Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sure.

    In wp-fullcalendar.php somewhere round line 196 change

    $post_date = substr($post->post_date, 0, 10);
    $post_timestamp = strtotime($post->post_date);

    to

    $acf_date = get_field('yourdate');
    $post_date = substr($acf_date, 0, 10);
    $post_timestamp = strtotime($acf_date);
    
    • This reply was modified 7 years, 6 months ago by konsument.
    Thread Starter hovex023

    (@hovex023)

    Thank you. That worked perfectly!

    *PLEASE IGNORE THIS AS I NOTICED SHORTLY AFTER POSTING THIS THAT THE DATE FORMAT THAT WAS BEIN RETURNED WAS INCORECT FOR THE CALENDER*

    Hi, if I use a text box this works with no issue, but when using this code with a date picker custom field the event is not displayed.

    appreciate any help in advance.

    • This reply was modified 7 years, 4 months ago by sandstorm121.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show date by acf’ is closed to new replies.