将下面的代码添加到你使用主题的footer.php中 //自动关键词与描述 Devework.com function get_cats_name() { $allcats=get_categories(); foreach ($allcats as $category) { $keywords[] = $category->cat_name; } return $keywords; } // utf8 substr function utf8Substr($str, $from, $len) { retur…