Commit fd3303e7 authored by Andrius Mickus's avatar Andrius Mickus

Slug is seo_url lauko

parent b4d324f9
...@@ -83,11 +83,6 @@ class JobsImporter ...@@ -83,11 +83,6 @@ class JobsImporter
// Set related custom posts // Set related custom posts
$posts = $this->getPosts($ad['posts'], $lang); $posts = $this->getPosts($ad['posts'], $lang);
if (isset($ad['properties']['custom_uri'])) {
$custom_uri = $ad['properties']['custom_uri'];
unset($ad['properties']['custom_uri']);
}
// Collect and prepare job's data // Collect and prepare job's data
$adData = $this->mapRelations(array_merge( $adData = $this->mapRelations(array_merge(
$ad['properties'], $ad['properties'],
...@@ -132,10 +127,10 @@ class JobsImporter ...@@ -132,10 +127,10 @@ class JobsImporter
// Set post language // Set post language
$this->setPostLang($podId, $ad['lang']); $this->setPostLang($podId, $ad['lang']);
if (isset($custom_uri)) { // if (isset($custom_uri)) {
$permalink_manager_uris[$podId] = $custom_uri; // $permalink_manager_uris[$podId] = $custom_uri;
update_option('permalink-manager-uris', $permalink_manager_uris); // update_option('permalink-manager-uris', $permalink_manager_uris);
} // }
} }
} }
......
...@@ -11,10 +11,10 @@ class JsonDataCollector ...@@ -11,10 +11,10 @@ class JsonDataCollector
'post_modified' => 'atnaujinta', 'post_modified' => 'atnaujinta',
'title' => 'pareigos', 'title' => 'pareigos',
'post_content' => 'aprasymas', 'post_content' => 'aprasymas',
'custom_uri' => 'seo_url', 'slug' => 'seo_url',
'contact' => 'kontaktai',
// 'email' => 'email', // 'email' => 'email',
// 'work_time' => 'darbo_laikas', // 'work_time' => 'darbo_laikas',
// 'contact' => 'kontaktai',
]; ];
// Taxonomies data map // Taxonomies data map
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment