Event Start Date on recurring events

Home Forums Calendar Products Events Calendar PRO Event Start Date on recurring events

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #53813
    Sean Norton
    Participant

    Until v3.0, I was using the tribe_get_start_date function to call the closest upcoming event in a recurring series using the following:
    <a href=””>ID, true, ‘M j, Y’); ?>

    However, I now am seeing that the tribe_get_start_date now displays the last occurrence of the series. The link points to the right location, so how do I get actual text to read the same? (Should be MMM D, YYYY HH:MM AM format)

    #53814
    Sean Norton
    Participant

    <span class=”event-date”&rt;<a href=”<?= tribe_get_event_link($post) ?&rt;”&rt;<?php echo tribe_get_start_date($post-&rt;ID, true, ‘M j, Y’); ?&rt;</a&rt;</span&rt;

    #53816
    Sean Norton
    Participant

    So I managed to destroy my pasted example there — whoops. I hope that makes sense to you guys. I use this to call upcoming events for certain categories (filtering via slug term) and just want the next in the series to appear.

    #54179
    Leah
    Member

    Hey Sean,

    Unfortunately the forum isn’t great for pasting code. Can you provide it using a service like pastebin or gist? Then we’ll be happy to help out.

    Thanks,
    Leah

    #54822
    snorton
    Participant
    #54865
    Kyle
    Participant

    Hi snorton,

    When I use tribe_get_start_date, it shows the next upcoming occurence of a series, as opposed to the last of a series like you are experiencing. I see you are passing the post ID two different ways in your code.. $post in the link and $post=>ID in the display. Perhaps some more context could help find out what the issue is?

    Cheers,
    Kyle

    #54873
    snorton
    Participant

    Hm, thanks for pointing out that very obvious oversight. I’m not sure why I was passing the post id two different ways, but using just $post makes it work fine now. thanks.

    #55424
    Leah
    Member

    Glad to hear that worked! Thanks snorton.

    ~Leah

    #979680
    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 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Event Start Date on recurring events’ is closed to new replies.