Home › Forums › Calendar Products › Events Calendar PRO › Eventbrite URL from event ID
- This topic has 5 replies, 4 voices, and was last updated 9 years, 5 months ago by
Rupert.
-
AuthorPosts
-
September 29, 2016 at 1:17 pm #1170666
Rupert
ParticipantHello,
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,
ShaunSeptember 29, 2016 at 3:06 pm #1170736Cliff
MemberHi 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.
September 30, 2016 at 3:25 am #1170924Rupert
ParticipantHi 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-27027670490I 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,
ShaunSeptember 30, 2016 at 3:36 pm #1171269Cliff
MemberRupert, 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. 🙂
October 22, 2016 at 9:35 am #1181295Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Eventbrite URL from event ID’ is closed to new replies.
