Hi Guust again:
I managed to get all the right fields where I wanted but even though I went through the doc, I can’t figure how to introduce line breaks where I want them to be, like right after “Home Address” (word and icon), and then right after the street address, that’s it.
Here’s the code I’m using in code snippet:
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 = ‘<i class=”fa fa-home”></i>’;}
else{$field_icon_af = $field_icon; $field_icon=”;}
if(!$preview)
{
$html = ‘
‘;
$html .= ‘<span class=”geodir-i-location” style=”‘.$field_icon.'”>’.$field_icon_af;
$html .= ‘ Adresse: ‘;
$html .= ‘</span>’;
//print_r($_POST);
if($post->post_address){ $html .= ‘<span itemprop=”streetAddress”>’.$post->post_address.'</span>
‘;}
if($post->post_city){ $html .= ‘<span itemprop=”addressLocality”>’.$post->post_city.'</span> ‘;}
if($post->post_region){ $html .= ‘<span itemprop=”addressRegion”>’.$post->post_region.'</span>
‘;}
if($post->post_zip){ $html .= ‘<span itemprop=”postalCode”>’.$post->post_zip.'</span>
‘;}
if($post->post_region){}
$html .= ‘
‘;
}
return $html ;
}