Hooking into event-passed?

Home Forums Calendar Products Events Calendar PRO Hooking into event-passed?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30058
    Philippe Braun
    Participant

    We’re preparing a website where Event Calender Pro events will not only be displayed using built-in shortcodes, but also in a slider (using event categories). However, this means that currently all events are displayed, even if they’re long over.
    Is there a way to somehow have a “event-passed” category (ECP does add the event-passed DIV with this information to the post in single display) added to all these events, or any other useful way of knowing if an event is still ahead or not?

    #30066
    Barry
    Member

    Possibly you could use the same logic as The Events Calendar itself? For instance, if your slider essentially is built around a loop you could use that or similar logic to skip iterations.

    Is there a way to somehow have a “event-passed” category (ECP does add the event-passed DIV with this information to the post in single display) added to all these events

    That’s an interesting idea – the short answer is this is definitely possible. You’d need to decide whether this would be handled automatically, behind the scenes, and if so would a scan of categories be made on every request or would you run this as a scheduled task? Alternatively would you set up a sort of batch-script to handle this and run it whenever you felt there was a requirement to do so?

    There are a few challenges there and you’d need to figure out the best strategy to meet your/your client’s requirements.

    #30090
    Philippe Braun
    Participant

    Thanks Barry for the ideas.
    We’re currently using Visual Composer’s built-in posts slider module, but we’ll possibly look into extending it with calendar logic.
    Since the client has also asked for a way to have posts, pages and events expire at a defined date/time in the future, we may also have to use some sort of logic for this and go with it.

    #30113
    Barry
    Member

    OK, good stuff.

    I don’t think there’s much else we can do for you here so I’m inclined to close this thread, but just let me know sometime in the next few days if you disagree/need further input.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hooking into event-passed?’ is closed to new replies.