Hello! I am using the following snippet to change the formatting of the map bubble addresses:
add_filter("geodir_show_listing_info","_my_map_address_add",10,2);
function _my_map_address_add($html,$fields_location){
if($fields_location=='mapbubble'){
$html = do_shortcode('[gd_post_address show="icon-label-value" address_template="%%post_title%% %%post_title_br%% :: %%street_br%% %%neighbourhood_br%% %%city_br%% %%region_br%% %%zip_br%% %%country%%"]').$html;
}
return $html;
}
Can css be used to target post types? I only want the address to be shown this way on one type – on the other type I have, no address is necessary. But using this snippet “forces” an address in the map bubble and overrides the cpt field settings. Or can this snippet be adjusted to only change the address and override the field settings for a specific cpt? Thank you very much!