Last active
May 19, 2017 22:37
-
-
Save andrasguseo/533ec767245651d024782f4df95e8189 to your computer and use it in GitHub Desktop.
The Events Calendar Pro - Adds City below event date in photo view for Sarah
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Adds City below event date in photo view | |
* Paste it in your child theme's functions.php file | |
*/ | |
function add_venue_to_photo_view() { | |
/* If we have city, then show city */ | |
if ( tribe_get_city() ) { | |
$venue = tribe_get_city(); | |
} | |
echo $venue; | |
} | |
add_action('tribe_events_after_the_meta', 'add_venue_to_photo_view'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment