Yes you can edit the template event-meta-event-single.php
. The API for getting a venue’s address is documented here: http://codex.wp-event-organiser.com/function-eo_get_venue_address.html
I managed to include address in single event page by adding this right under the event venue in event-meta-event-single.php
:
<?php
if ( $address_details = eo_get_venue_address( $venue_id ) ) {
echo '<div style="line-height:16px;"><small>' . $address_details['address'] . '</small></div><div style="line-height:16px;"><small>' . $address_details['postcode'] . ', ' . $address_details['city'] . '</small></div>';
}
?>
but if I add the exact same code in taxonomy-event-venue.php
template, so that the address is also displayed inside the venue page under the description, nothing is shown. I must be missing something really simple, I just can’t figure it out.
-
This reply was modified 7 years, 1 month ago by techsmurfy.
-
This reply was modified 7 years, 1 month ago by techsmurfy.
In the end, it was a theme compatibility issue. The theme template apparently overrode taxonomy-event-venue.php
from being loaded, so any edits I made didn’t matter.
In THIS case, for anyone having the same issue while trying to edit venue and categories pages, you’ll have to edit class-eo-theme-compatability.php
instead (around line 170), which I did. That is, if you’re using the theme compatibility mode in EO settings.
Now I’d like to figure out how to have the venue name / category name in the page title (i.e. Venue name – Website name) inside the respective pages. Page titles work normally if I disable theme compatibility, but with theme compatibility mode on, it just displays the website title in my browser window. Is there a wp_title function missing in class-eo-theme-compatability.php
or something?
Edit: I guess I’m gonna have to create another thread if needed, I wasn’t looking to stray off-topic, apologies to the OP @krisyoungboss
-
This reply was modified 7 years, 1 month ago by techsmurfy.
-
This reply was modified 7 years, 1 month ago by techsmurfy.