added link of pages for posts

This commit is contained in:
lenovo
2022-11-13 18:07:59 +01:00
parent 6e67fb8c05
commit ada87da370
6 changed files with 30 additions and 43 deletions

View File

@@ -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 );