This commit is contained in:
Filip Penkava
2017-04-12 11:45:41 +02:00
parent dfc39c44ca
commit 229b85424c
2 changed files with 59 additions and 0 deletions

View File

@@ -40,6 +40,19 @@ if ($obj['type'] == 'text') {
}
}
if ($settings['convert-slugline'] && $settings['convert-slugline'] == 'on') {
if (isset($obj['slugline']) && !empty($obj['slugline'])) {
$ignoreKeywords = explode(',', $settings['slugline-ignored']);
$tmpKeywords = explode($settings['slugline-separator'], $obj['slugline']);
foreach ($tmpKeywords as $word) {
if (!in_array($word, $ignoreKeywords)) {
$taxonomyTag[] = $word;
}
}
}
}
foreach ($obj['subject'] as $subject) {
if ($settings['subject-type'] == 'tags') {
$taxonomyTag[] = wp_strip_all_tags($subject['name']);