Display full region name
-
How do you display the full region/state’s name?
tribe_get_region
returns the abbreviated state’s name.tribe_get_full_region
should return the full state’s name, but it doesn’t return anything.If you chase
tribe_get_full_address
down the rabbit hole, it leads tosrc/template-tags/venue.php
which translates the abbreviation to the state’s full name.So, why doesn’t something like this work?
`
$venue_id = get_the_ID();
$full_region = tribe_get_full_region( $venue_id );
if ( tribe_get_region( $venue_id ) ) :
echo $full_region;
endif;
`
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Display full region name’ is closed to new replies.