Results 1 to 3 of 3

Thread: How to get complete location for Google Maps ?

  1. #1
    Thread Starter
    neticpro's Avatar
    Join Date
    Feb 2011
    Location
    France
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to get complete location for Google Maps ?

    Hi,

    I'd like to know if I can get a custom field giving me the full address for Google Maps : street, zipcode, city. All those informations are stored in custom fields, but I found something in the code that should be what I want :

    File : includes/sidebar-gmap.php
    PHP Code:

        <?php
        
    // check to see if ad is legacy or not and then assemble the map address
        
    if ( get_post_meta($post->ID'location'true) )
            
    $make_address get_post_meta($post->ID'location'true);
        else
            
    $make_address get_post_meta($post->ID'cp_street'true) . '&nbsp;' get_post_meta($post->ID'cp_zipcode'true) . '&nbsp;' get_post_meta($post->ID'cp_city'true);
        
    ?>
    Where can I found the custom field 'location' ?

  2. #2
    Thread Starter
    neticpro's Avatar
    Join Date
    Feb 2011
    Location
    France
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    neticpro's Avatar
    Join Date
    Feb 2011
    Location
    France
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Google maps location
    By kolef in forum ClassiPress General Discussion
    Replies: 3
    Last Post: August 12th, 2011, 05:13 PM
  2. [SOLVED] Google Maps Location
    By andree62 in forum Help Using ClassiPress
    Replies: 3
    Last Post: August 9th, 2011, 10:15 AM
  3. Replies: 20
    Last Post: May 10th, 2011, 03:48 AM
  4. Issue with google maps location
    By biggreg in forum Report JobRoller Bugs
    Replies: 26
    Last Post: May 9th, 2011, 02:04 PM
  5. author location for google maps
    By aggieoutlaw8 in forum ClassiPress General Discussion
    Replies: 8
    Last Post: November 3rd, 2010, 12:10 PM