• Resolved challahan

    (@challahan)


    I am using a plugin called WP All Import to automatically import events from our XML feed into the “Events” custom post type. http://www.wpallimport.com

    Everything is importing just great, with the correct date, time, event name, etc. However, it seems that the event year is not being saved properly.

    When I check the date within each event’s edit screen, it displays correctly as 2015. However, when I view either my events widget or the overall calendar view, the events do not display – presumably because they do not have a year set in the database.

    When I click “Update” on each event, the event then re-saves the year properly (without changing any of the fields) and displays both on the widget and the calendar view.

    Is there some way I can get this “update” to happen automatically?

    The address of the staging website on which I’m using the plugin is: http://ideabasekent.com/staging/slo/production/events/ (note that currently all of the events have been manually re-saved, so they are showing on the calendar).

    Thanks for any help you can provide!

    https://wordpress.org/plugins/the-events-calendar/

Viewing 1 replies (of 1 total)
  • Hey @challahan,

    You may indeed be able to write code that automatically re-saves things after import – there are functions in WordPress core like wp_update_post() which would enable this, which you can learn more about here → http://codex.wordpress.org/Function_Reference/wp_update_post

    I’d recommend reaching out to WP All Import’s support for, hopefully, some insight from them as to why this import would be failing on that one specific field.

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘Event Year Not Saving Properly Until Manual Update’ is closed to new replies.