add_filter('geodir_show_post_address', 'geodir_change_address_order' , 100 , 2) ; function geodir_change_address_order($html , $vars) { global $post, $preview, $wpdb; $field_icon=''; if (strpos($field_icon,'http') !== false) {$field_icon_af = '';} elseif($field_icon==''){$field_icon_af = '';} else{$field_icon_af = $field_icon; $field_icon='';} if(!$preview) { $html = '
';
$html .= ''.$field_icon_af;
$html .= ' Address: ';
$html .= '';
//print_r($_POST);
if($post->post_address){ $html .= ''.$post->post_address.'
';}
if($post->post_city){ $html .= ''.$post->post_city.', ';}
if($post->post_region){ $html .= ''.$post->post_region.' ';}
if($post->post_zip){ $html .= ''.$post->post_zip.'
';}
if($post->post_country){}
$html .= '