WordPress.org

Support

Support » Plugins and Hacks » FT Calendar » Unpublish post after event date passes?

Unpublish post after event date passes?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Not automatically… but you can delete/unpublish like normal in WordPress (it should remove it from the calendar).

    Is it possible to get at the ft-calendar date of a post from outside that post?

    I’m not sure what you’re asking.

    I’ve got a calendar/google map mashup of sorts happening. When an event expires, I want the corresponding marker on the map to stop being displayed. There are a couple paths that I think I can go in – I’ve got limited programming chops – but can hack around. Either path requires me to be able to get at the ftcalendar date of a post to find out whether or not it is current, or past. I think I need to be able to do that from within the code of the map plugin that I’m using.

    If (ftcalender date of post xx is current){display marker} – repeat until all markers have been displayed.

    Does that make any sense? That is why I’m looking for ways to get at the ftcalendar date of a post…

    The Post ID that is associated with the event is stored in the ftcalendar table (post_parent). You’ll probably need to setup a wp cron to unpublish a post that has an expired event time.

    Lew

    Excellent – thanks for the pointer! Appreciate your time.

    t

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Unpublish post after event date passes?’ is closed to new replies.
Skip to toolbar