dmo_get_address_full

Returns a fully formatted address for the specified Place. Separates individual address fields using the supplied $separator string. This function returns a nicely-formatted address, even if one or more Place fields are empty.

Syntax

dmo_get_address_full($post_id, $separator)

Arguments

$post_id

Default Value: When used within the loop, this value defaults to the current Post ID. When used outside the loop, this value must be supplied.

Acceptable Values: A single integer representing a WordPress Post ID that corresponds to a Place.


$separator

Default Value: “, ”

Acceptable Values: Any HTML-compatible string. The contents of this argument will be placed in between each address field during output.