Adding Miles Post date Home › Forums › Calendar Products › Events Calendar PRO › Adding Miles This topic has 4 replies, 2 voices, and was last updated 8 years, 10 months ago by Michelle Jensen. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts June 11, 2017 at 9:47 pm #1296533 Michelle JensenParticipant Hey, Is there a way to add miles or some sort of quantity after the 4.19 so that people know that’s distance? http://nerdoutapp.com/calendar/?action=tribe_geosearch&tribe_paged=1&tribe_event_display=map&featured=false&tribe-bar-geoloc-lat=34.1425078&tribe-bar-geoloc-lng=-118.25507500000003&tribe-bar-geoloc=glendale June 13, 2017 at 3:45 pm #1297536 VictorMember Hi Michelle! 🙂 Sure! You should add the following snippet of code to your theme’s functions.php file: add_filter( 'tribe_get_distance_with_unit','display_units' ,10, 3 ); function display_units ($distance, $distance_in_kms, $unit) { $distance = $distance . ' ' . $unit; return $distance; } Does it work for you? Let me know about it. Best, Victor June 13, 2017 at 5:07 pm #1297556 Michelle JensenParticipant Worked great thanks!! June 14, 2017 at 5:16 am #1297729 VictorMember Hi Michelle! I’m glad it worked out for you! Thanks for coming back and letting us know. I’ll close this now, but feel free to open a new one if any other questions come up. 🙂 Cheers! Victor Author Posts Viewing 4 posts - 1 through 4 (of 4 total) The topic ‘Adding Miles’ is closed to new replies. → Please verify your API key is correctly entered on the settings