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().

A meta box (in a custom post type) with two different type of fields

If you save the contents of the two input fields into one post_meta value you are able to call them at once. In the save_post action $text = esc_attr( $_POST[‘text’] ); $select = esc_attr( $_POST[‘select’] ); // saves the value as “text select” $combined = trim( sprintf( ‘%1$s %2$s’, $text, $select ) ); update_post_meta( $post_id, … Read more