Custom field option in Google maps plugin

Hello,
i created 2 custom fields with custompress.
1 for the Street adress,
2 for a City.

In the options google-maps-plugin/custom-fields i enter these 2 custom ID separated with comma:

customIDforStreet, CustomIDforCity

but these not showing properly on the post pages...

the map try showing related city for customIDforStreet (try show as city not as street)

i need know how i need formatting these custom fields(after street name comma...) to show properly when i use 2 custom fields(street+city)

thank you :slight_smile:

  • Ash

    Hello @Tomas

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    You can give the latitude and longitude value to show the map. You have to give the latitude and longitude IDs in google map settings.

    i need know how i need formatting these custom fields(after street name comma...) to show properly when i use 2 custom fields(street+city)

    Are the custom field created using CustomPress? Otherwise you need to edit the template file.

    Is it post where you are using custom field? If yes, you need to edit single.php.

    You can show custom values like the following:

    global $post;
    echo get_post_meta( $post->ID, 'custom_filed_id_1' ) . ', ' . get_post_meta( $post->ID, 'custom_filed_id_2' );

    Hope it helps :slight_smile: Please feel free to ask more question if you have.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.