simple-location/post-form.php

10 lines
412 B
PHP

<?php
global $post;
$city = get_post_meta($post->ID, '_simple_location_city', true);
$country = get_post_meta($post->ID, '_simple_location_country', true);
?>
<p>If left blank, location detection will be automatically attempted from your IP with Google.</p>
City: <input name="city" type="text" value="<?php print $city;?>" />, County: <input name="country" type="text" value="<?php print $country;?>" />
<?php