• Hello,

    we are curious about to know how we can display the country of a store at the clickable marker menu at the map.

    We see the country information e.g. “Germany” already in the search results but when we click on a marker on the map, we only see it like this:

    Company name
    Street + Number
    PLZ + State
    <<here would be nice to have the country again >>
    phone:
    email:

    Can you help us out with a filter here? We look in your docu but did not find anything about it.

Viewing 1 replies (of 1 total)
  • Hi there!

    Maybe the easiest way to accomplish that is to define a custom address format as explained here: wpsl_address_formats.

    If for example you want to have an additional address format, consider this small code snippet:

    add_filter( 'wpsl_address_formats', 'custom_address_formats' );
    
    function custom_address_formats( $address_formats ) {
        
        $address_formats['zip_state_city_country']       = __( '(zip code) (state) (city) (country)', 'wpsl' );
    
        return $address_formats;
    }

    This will create a new option in the “Address format” dropdown in the settings (see screenshot).

    Which, in turn, will make the country visible in the frontend, in the result list.

    I hope that helps.
    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Show Country in Map Search Result’ is closed to new replies.