Automattic / eventbrite-api

The Eventbrite API plugin brings the power of Eventbrite to WordPress, for both users and developers.
68 stars 40 forks source link

Address being output twice? #52

Closed mark-making closed 8 years ago

mark-making commented 8 years ago

Using eventbrite_event_venue() with the address property seems to be outputting the address twice?

From what I can gather, it seems to pull in the event location, then the overall address of the event listing footer.

example

📟 @kwight

kwight commented 8 years ago

The eventbrite_event_venue() function returns the full venue object from the API response, so to use the address, you'll need to reference and echo out the pieces you would like. The response is in this format:

screen shot 2016-10-17 at 11 42 20 am

... so you'll need calls like eventbrite_event_venue()->name and eventbrite_event_venue()->address->city in your template to assemble the address you want to display, in whatever format you like.

mark-making commented 8 years ago

Thanks @kwight.