Commit fd3303e7 authored by Andrius Mickus's avatar Andrius Mickus

Slug is seo_url lauko

parent b4d324f9
......@@ -83,11 +83,6 @@ class JobsImporter
// Set related custom posts
$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
$adData = $this->mapRelations(array_merge(
$ad['properties'],
......@@ -132,10 +127,10 @@ class JobsImporter
// Set post language
$this->setPostLang($podId, $ad['lang']);
if (isset($custom_uri)) {
$permalink_manager_uris[$podId] = $custom_uri;
update_option('permalink-manager-uris', $permalink_manager_uris);
}
// if (isset($custom_uri)) {
// $permalink_manager_uris[$podId] = $custom_uri;
// update_option('permalink-manager-uris', $permalink_manager_uris);
// }
}
}
......
......@@ -11,10 +11,10 @@ class JsonDataCollector
'post_modified' => 'atnaujinta',
'title' => 'pareigos',
'post_content' => 'aprasymas',
'custom_uri' => 'seo_url',
'slug' => 'seo_url',
'contact' => 'kontaktai',
// 'email' => 'email',
// 'work_time' => 'darbo_laikas',
// 'contact' => 'kontaktai',
];
// 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