Querying posts by latitude and longitude to build a Google Maps with several markers

To connect your meta fields with the “Geo Data Store”-Plugin, you simply take the name of the meta key/field and map it with the filter to the plugin.

add_filter( 'sc_geodatastore_meta_keys', 'wpse82502_lat_lng_metakey_mapping' );
function wpse82502_lat_lng_metakey_mapping( $keys )
{
    $keys[] = "your_meta_key_field_name";
    return $keys;
}

To get the data from PHP to JS, simply use wp_localize_script().

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)