calendar – Save event change in WP Fullcalendar: editable + draggable
I use a plugin to display my “custom_post_type” events.
- I have modified the “wp-fullcalendar.php” plugin file in several places to show the start and end time of the “custom_fields” event.
- I also edited the “inline.js” file in the “includes / js /” folder to make the calendar “editable” and “dragable”.
- But I CAN’T set the calendar to save the change to my “custom_post_type” event when I make a change by moving the event on the calendar.
I read the documentation for the JS plugin “calendar.io”, but I can’t insert the code into the already finished plugin “WP Fullcalendar”.
Will you help please? Thanks!!!
These are my edits to the plugin code
/* $post_date = substr($post->post_date, 0, 10); $post_timestamp = strtotime($post->post_date); */ $post_date = substr($post->_EventStartDate, 0, 10); $post_timestamp = strtotime($post->_EventStartDate); $post_end_date = substr($post->_EventEndDate, 0, 10); $post_end_timestamp = strtotime($post->_EventEndDate);
editable: true, droppable: true, eventOverlap: true, dayMaxEvents: true,
I need to save my appointment as soon as I drag its location on my calendar or when I change its duration. And I just can’t do this. The source of the code, how to achieve this, is here: