Title: Address separator missing or wrong
Last modified: September 23, 2021

---

# Address separator missing or wrong

 *  Resolved [HungryJos](https://wordpress.org/support/users/hungryjos/)
 * (@hungryjos)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/address-separator-missing-or-wrong/)
 * In the list view, the venue address that is composed of street, city,… the separators
   are missing – everything is stitched together.
    I was able to change the separator
   and insert the comma, but I don’t see how I can finish the address with a colon/
   point. This is my modified version, but it is still very random: some addresses
   have commas now, but others have points. If I change the point to comma, I have
   a comma at the end of the address, where I would rather have nothing or a point.
 *     ```
       if ( ! $event->venues->count() ) {
       	return;
       }
   
       $separator            = esc_html_x( ',  ',  'Address separator', 'the-events-calendar' );
       $venue                = $event->venues[0];
       $append_after_address = array_filter( array_map( 'trim', [ $venue->state_province, $venue->state, $venue->province ] ) );
       $address              = $venue->address . ( $venue->address && $append_after_address ? $separator : '.' );
       ?>
       <address class="tribe-events-calendar-list__event-venue tribe-common-b2">
       	<span class="tribe-events-calendar-list__event-venue-title tribe-common-b2--bold">
       		<?php echo wp_kses_post( $venue->post_title ); ?>
       	</span>
       	<span class="tribe-events-calendar-list__event-venue-address">
       		<?php 
       		echo esc_html( $address ); 
   
       		if ( ! empty( $venue->city ) ) : 
       			echo esc_html( $venue->city . $separator ); 
       		endif;
   
       		if ( $append_after_address ) : 
       			echo esc_html( reset( $append_after_address ) ); 
       		endif; 
       		?>
       	</span>
       </address>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Gustavo Bordoni](https://wordpress.org/support/users/bordoni/)
 * (@bordoni)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/address-separator-missing-or-wrong/#post-15413279)
 * Hi [@hungryjos](https://wordpress.org/support/users/hungryjos/),
 * Sorry for the huge delay on our answer here.
 * Would you mind sharing a couple of examples of:
 * – Value on Fields
    – How these values would should show on the frontend?
 * That would allow me to modify the code to get it done.
 * Best Regards,
 *  [Sky Shabatura](https://wordpress.org/support/users/skyshab/)
 * (@skyshab)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/address-separator-missing-or-wrong/#post-15495966)
 * Since we haven’t heard from you in a while on this topic we will assume that 
   the problem was fixed or is no longer applicable and with that I will mark this
   as resolved.
 * If that is not the case, please let us know and we will gladly remove the “Resolved”
   tag and try to help you further. Or you can create a new topic with the problem
   if you prefer.
 * Best,
    Sky

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Address separator missing or wrong’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

 * [address](https://wordpress.org/support/topic-tag/address/)
 * [code](https://wordpress.org/support/topic-tag/code/)
 * [venue](https://wordpress.org/support/topic-tag/venue/)

 * 2 replies
 * 3 participants
 * Last reply from: [Sky Shabatura](https://wordpress.org/support/users/skyshab/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/address-separator-missing-or-wrong/#post-15495966)
 * Status: resolved