Title: Display Custom Post Date/time
Last modified: August 20, 2016

---

# Display Custom Post Date/time

 *  [B.](https://wordpress.org/support/users/bandonrandon/)
 * (@bandonrandon)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/display-custom-post-datetime/)
 * I’m trying to use the plugin Magic Fields 2 to set the event start time end time
   and end date. However, it appears that the start date is being hardcoded in the`
   ajax` function in `wp-fullcalendar.php` I found this line:
 * `$post_date = substr($post->post_date, 0, 10);`
 * Is there a filter that can be used to override this with custom time/date?
 * [http://wordpress.org/extend/plugins/wp-fullcalendar/](http://wordpress.org/extend/plugins/wp-fullcalendar/)

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

 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/display-custom-post-datetime/#post-3290927)
 * I’m going to add/change this line so you can add your own filter
 *     ```
       $item = array ("title" => $title, "color" => $color, "start" => date('Y-m-d\TH:i:s', $post_timestamp), "end" => date('Y-m-d\TH:i:s', $post_timestamp), "url" => get_permalink($post->ID), 'post_id' => $post->ID );
       $items[] = apply_filters('wpfc_ajax_post', $item, $post);
       ```
   
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/display-custom-post-datetime/#post-3290928)
 * that’d be around line 193
 *  Thread Starter [B.](https://wordpress.org/support/users/bandonrandon/)
 * (@bandonrandon)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/display-custom-post-datetime/#post-3290931)
 * Thanks Marcus,
 * Can you give a quick example of how to filter this. I’m assuming it would be 
   something like.
 *     ```
       my_nifty_function($item,$post){
         $item['start'] = the_post_meta('custom_start');
         $item['end'] = the_post_meta('custom_end');
   
        return items[];
       }
       add_filter('wpfc_ajax_post','my_nifty_function')
       ```
   
 * Is this on the right track?
 * Thanks!
 *  [hughes1974](https://wordpress.org/support/users/hughes1974/)
 * (@hughes1974)
 * [13 years ago](https://wordpress.org/support/topic/display-custom-post-datetime/#post-3290933)
 * Hi all any word on this? I would love to use a custom field for this.

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

The topic ‘Display Custom Post Date/time’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-fullcalendar.svg)
 * [WP FullCalendar](https://wordpress.org/plugins/wp-fullcalendar/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fullcalendar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fullcalendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fullcalendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fullcalendar/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [hughes1974](https://wordpress.org/support/users/hughes1974/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/display-custom-post-datetime/#post-3290933)
 * Status: not resolved