stephenharris / Event-Organiser

WordPress plug-in, Event Organiser, development repository
http://wordpress.org/extend/plugins/event-organiser/
GNU General Public License v3.0
99 stars 76 forks source link

How to display venue address field content #450

Open rvlak opened 5 years ago

rvlak commented 5 years ago

Dear Stephen,

I am setting up a custom template with Elementor to display an Event Single Post. I managed to display native WP-fields of the post itself, like 'title' and 'excerpt'. But I also want to display the date and time of the Event, as well as field values from the related Event Venue, like the address and city. Could you tell me how to do this / what the field names are? I consulted the Codex (http://codex.wp-event-organiser.com) but could not find a list of field names.

stephenharris commented 5 years ago

The fields are not stored against the post itself, so there are no fields I can give you. You would have to use the API. Event venue is just a custom taxonomy (like category or tag), but the address details are stored in the plugin's venue metadata table - again this is not something that third-party plugins are likely to be aware of.

rvlak commented 5 years ago

Hi Stephen, thanks for getting back. I understand that for efficiency reasons and to generate overviews of events by venue, a venue need to be a separate entity from the event. But why are the date and time of an event not stored in the event post itself? That would make it much easier for people with little or no coding skills to display this information elsewhere...