Link directly to next event in a category

Home Forums Calendar Products Events Calendar PRO Link directly to next event in a category

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1449830
    wacreading
    Participant

    I asked in pre-sales about this and how we’re licensed 🙂

    Having looked at https://theeventscalendar.com/knowledgebase/linking-to-specific-event-views/, is it possible to link directly to the next event in a specific category.

    For example if we had multiple upcoming lunch and breakfast events, is there a way to link to /NextBreakfast and /NextLunch and always have it go to the next upcoming breakfast or lunch event, respectively?

    Brendan had replied that it was with some special functions. Can someone point me in the right direction to get this setup?

    #1451545
    Victor
    Member

    Hi Mike!

    Thanks for reaching out to us! Let me help you with this topic.

    There is no default URL to link to the first upcoming event on a specific category. Like you said, it can be accomplished with some custom coding.

    Let me point you to the following article about using the tribe_get_events() function > https://theeventscalendar.com/knowledgebase/using-tribe_get_events/. With that function and some custom coding you can fetch the next upcoming event link for a specific category, and then use it inside a custom page template which could be displayed in yoursite.com/NextBreakfast

    Additionally, let me point you to the following articles that show the available shortcodes you can use to display specific views and widgets for our plugins > https://theeventscalendar.com/knowledgebase/embedding-calendar-views-tribe_events-shortcode/ and https://theeventscalendar.com/knowledgebase/pro-widget-shortcodes/

    I hope that helps. Let me know if any follow up questions 🙂

    Best,
    Victor

    #1452159
    wacreading
    Participant

    Thanks, Victor. I’ll give this a shot and see what I can come up with!

    #1452432
    Victor
    Member

    Sure thing Mike!

    As you marked this thread “Resolved” I’ll go ahead and close it, but don’t hesitate to open a new topic if anything comes up and we’ll be happy to help. 🙂

    Cheers,
    Victor

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Link directly to next event in a category’ is closed to new replies.