✔ EventOn City should appear with Address
Completed by Veronica A.
- Assigned to
-
Ryan R.
Veronica A.
- Notes
-
Address
City, ST
If there is no city or state, don't display them
EventOn does offer limited template overriding ability. Problem is, those templates only scratch the surface. Those templates jump off to do several actions and functions to create their environment.
I was able to find the file in the plugin (eventon_eventCard.php) that houses the logic for this section. Unfortunately, City and State are not included in the event object (from what I could tell). There is however a location taxonomy ID, which should be sufficient to accomplish the task. However, evo_get_term_meta('location_city', $object->locTaxID) did not retrieve the City like the documentation suggested. What I found particularly odd was the fact I couldn't easily find Address, City, or State in the database. It wasn't in the terms and terms_meta tables like I expected.
So, parking this one for later.
Do you have a suggestion for a workaround on this?
Thanks,
Connie
Connie,
As it turns out, EventOn actually finds the address for the location using only the Address field and does not take into account the City, State, or Country when finding the Google address.
Honestly, I'm not quite sure why those fields even exist at this point. But I have updated the editing guide with a note and image on what fields to/not to fill out to display the correct Google Map address.