Eventbrite URL from event ID

Home Forums Calendar Products Events Calendar PRO Eventbrite URL from event ID

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1170666
    Rupert
    Participant

    Hello,

    Is it possible to determine the Eventbrite URL from an event’s ID? I would like to create a shortcode to generate a ‘Book now’ button linking through to the Eventbrite booking form for an event. With a shortcode editors would have the option of placing a ‘Book now’ button within the event’s description text content.

    Many thanks,
    Shaun

    #1170736
    Cliff
    Member

    Hi Rupert / Shaun,

    The Eventbrite event ID is stored in the postmeta for the WordPress Event’s Post ID.

    You can get a WordPress Event’s Eventbrite ID like this:

    $eventbrite_id = get_post_meta( $event_id, '_EventBriteId', true );

    Then you can use this format for the URL: https://www.eventbrite.com/edit?eid=EVENTBRITE_ID

    However, I see that you’ve purchased Events Calendar PRO and not Eventbrite Tickets. Please let me know if I’m missing something regarding your question.

    I hope this helps.

    #1170924
    Rupert
    Participant

    Hi Cliff,

    Thanks very much for the suggestion, but that would be the URL to edit the event info on Eventbrite rather than for the booking page.

    The Eventbrite event booking page URL for one of our events is:
    https://www.eventbrite.com/e/cpd-conference-2017-tickets-27027670490

    I need a way to get this programmatically. From the code you posted I can now get the Eventbrite event ID which is great. I just need a similar method or some other way to get the Eventbrite event URL.

    I thought there might be something like the following, but there doesn’t seem to be:

    $eventbrite_url = get_post_meta( $event_id, ‘_EventBriteURL’, true );

    By the way, we have on our site the plugins ‘The Events Calendar PRO’ and ‘The Events Calendar: Eventbrite Tickets’.

    Thanks again for your help so far,
    Shaun

    #1171269
    Cliff
    Member

    Rupert, your account only has purchase history for Events Calendar PRO, not for Eventbrite Tickets. I provided a helpful initial reply nonetheless.

    Whether or not you had an Eventbrite license on this account, I’d suggest asking Eventbrite’s support how to get to the public URL for an event from the Eventbrite ID.

    I hope this information helps. 🙂

    #1181295
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Eventbrite URL from event ID’ is closed to new replies.