WordPress.org

Ready to get started?Download WordPress

Forums

FT Calendar
Unpublish post after event date passes? (7 posts)

  1. babacom
    Member
    Posted 3 years ago #

    Is there anyway to do this?

  2. Lew Ayotte
    Member
    Plugin Author

    Posted 3 years ago #

    Not automatically... but you can delete/unpublish like normal in WordPress (it should remove it from the calendar).

  3. babacom
    Member
    Posted 3 years ago #

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

  4. Lew Ayotte
    Member
    Plugin Author

    Posted 3 years ago #

    I'm not sure what you're asking.

  5. babacom
    Member
    Posted 3 years ago #

    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...

  6. Lew Ayotte
    Member
    Plugin Author

    Posted 3 years ago #

    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

  7. babacom
    Member
    Posted 3 years ago #

    Excellent - thanks for the pointer! Appreciate your time.

    t

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic