你为什么不试着自己创造一个鼻涕虫呢。然后把它和你想要的东西联系起来。
只需使用此功能:
function slugify($str){
$search = array(\'Ș\', \'Ț\', \'ş\', \'ţ\', \'Ş\', \'Ţ\', \'ș\', \'ț\', \'î\', \'â\', \'ă\', \'Î\', \'Â\', \'Ă\', \'ë\', \'Ë\');
$replace = array(\'s\', \'t\', \'s\', \'t\', \'s\', \'t\', \'s\', \'t\', \'i\', \'a\', \'a\', \'i\', \'a\', \'a\', \'e\', \'E\');
$str = str_ireplace($search, $replace, strtolower(trim($str)));
$str = preg_replace(\'/[^\\w\\d-\\ ]/\', \'\', $str);
$str = str_replace(\' \', \'-\', $str);
return (substr($str, -1) == \'-\' ? substr($str, 0, -1) : $str );
}
并将字符串提供给此函数宾果!我在这个函数中做了一些定制。
What I am saying is create a custom-field with custom-post-type then make it read-only. And put your desire link in there. Everything will be fine.