added link of pages for posts
This commit is contained in:
@@ -26,7 +26,7 @@ require_once(dirname(__FILE__) . '/mp_url_api.php');
|
||||
require_once(dirname(__FILE__) . '/mp_add_to_scripts.php');
|
||||
require_once(dirname(__FILE__) . '/mp_get_coordinates.php');
|
||||
require_once(dirname(__FILE__) . '/mp_get_events.php');
|
||||
require_once(dirname(__FILE__) . '/mp_sort_events.php');
|
||||
require_once(dirname(__FILE__) . '/mp_get_locations.php');
|
||||
require_once(dirname(__FILE__) . '/mp_get_filters.php');
|
||||
require_once(dirname(__FILE__) . '/mp_address_errors.php');
|
||||
require_once(dirname(__FILE__) . '/mp_create_div.php');
|
||||
@@ -127,14 +127,6 @@ add_shortcode('ljdp_errors_map', 'mp_errors_map');
|
||||
function post_published_coordinates($id, $post) {
|
||||
|
||||
$location = mp_get_coordinates($id);
|
||||
/*
|
||||
coordinates;
|
||||
street;
|
||||
city;
|
||||
country;
|
||||
address;
|
||||
approximate;
|
||||
*/
|
||||
|
||||
if ( ! add_post_meta( $id, 'location', $location, true ) )
|
||||
update_post_meta( $id, 'location', $location );
|
||||
|
||||
Reference in New Issue
Block a user