location empty field display issue fixed

This commit is contained in:
magepeopleteam 2018-11-06 09:55:59 +00:00
parent b3d3c46b78
commit 9c13a2a2ef
1 changed files with 5 additions and 5 deletions

View File

@ -6,11 +6,11 @@ function mep_ev_location(){
global $event_meta;
?>
<p><?php echo $event_meta['mep_location_venue'][0]; ?>,</p>
<p><?php echo $event_meta['mep_street'][0]; ?>,</p>
<p><?php echo $event_meta['mep_city'][0]; ?>,</p>
<p><?php echo $event_meta['mep_state'][0]; ?>,</p>
<p><?php echo $event_meta['mep_postcode'][0]; ?>,</p>
<p><?php echo $event_meta['mep_country'][0]; ?></p>
<?php if($event_meta['mep_street'][0]){ ?><p><?php echo $event_meta['mep_street'][0]; ?>,</p> <?php } ?>
<?php if($event_meta['mep_city'][0]){ ?> <p><?php echo $event_meta['mep_city'][0]; ?>,</p> <?php } ?>
<?php if($event_meta['mep_state'][0]){ ?> <p><?php echo $event_meta['mep_state'][0]; ?>,</p> <?php } ?>
<?php if($event_meta['mep_postcode'][0]){ ?> <p><?php echo $event_meta['mep_postcode'][0]; ?>,</p> <?php } ?>
<?php if($event_meta['mep_country'][0]){ ?> <p><?php echo $event_meta['mep_country'][0]; ?></p> <?php } ?>
<?php
}