Get start and end dates or range of recurring events?

Home Forums Calendar Products Events Calendar PRO Get start and end dates or range of recurring events?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #78401
    parkwaypartners
    Participant

    Hi – we have a lot of events that are recurring daily over a span of a certain date range.
    So, for example, our Poinsettia volunteers are working from 9-3 every day between December 1 and December 16. I’d love to be able to display “December 1- December 16” on the single event page under the current day’s date – is there any way I can do this?

    Thanks!
    Erin

    #78496
    Barry
    Member

    Hi Erin,

    Great question!

    There are two different approaches you might take to put a change like this in place. One would be a template override (where you target the pro/day/single-event.php template and replace the tribe_events_event_schedule_details() function call with your own logic) or the other might be to simply set up a filter using the tribe_events_event_schedule_details hook and change the output that way – depending on what you are comfortable with.

    In terms of actually figuring out that final date you would need to use tribe_get_events() and/or familiarize yourself with querying in a WordPress context.

    #78498
    parkwaypartners
    Participant

    Hi Barry – thanks to your suggestion in repsonse to my other post I am able to get the start date for the recurring events, but not the end date – is there a reason why this would work: tribe_get_start_date( $post->ID, FALSE, ‘F j’ );
    but this just returns the start date again? tribe_get_end_date( $post->ID, FALSE, ‘F j’ );
    ?

    How else might I be able to grab the last date for that recurring event?

    #78523
    Barry
    Member

    Yes: I’ve replied in that other thread though and will go ahead and close this one.

    Thanks!

    #982411
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Get start and end dates or range of recurring events?’ is closed to new replies.