Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * This is the section you are looking for...
- */
- if( tribe_get_region( $postId ) ) {
- if( $cityregion != '' ) $cityregion .= ', ';
- $cityregion .= tribe_get_region( $postId );
- }
- /**
- * Amend it to the following (this should ensure that
- * the province is displayed for Canadian addresses,
- * not the state):
- */
- if( tribe_get_region( $postId ) ) {
- if ( tribe_get_country( $postId ) === 'Canada' ) {
- $region = tribe_get_province( $postId );
- }
- else {
- $region = tribe_get_region( $postId );
- }
- if( $cityregion != '' ) $cityregion .= ', ';
- $cityregion .= $region;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement