location empty field display issue fixed
This commit is contained in:
parent
b3d3c46b78
commit
9c13a2a2ef
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue