WordPress中文Tag链接出错问题解决方法

1.首先找到/wp-includes/rewrite.php 文件(在操作前请将其备份,以免修改出错。)
2.打开 rewrite.php 文件找到一下代码
if (empty($this->permalink_structure)) {
上下文关系别改错地址了哦
function get_tag_permastruct() {
if (isset($this->tag_structure)) {
return $this->tag_structure;
}
if (empty($this->permalink_structure)) {
$this->tag_structure = '';
return false;
}
应该在文件的464行,不要用记事本打开,用支持UTF-8编码的编辑器比如EditPlusDreamweaver等工具将其改成
if (!empty($this->permalink_structure)) {
也就是在empty前加上英文的叹号"!"就是了。
3.保存!上传,现在去看看效果吧!
在做之前可以您也可以查看本站的中文TAG,问题已经解决。

这篇文章现在暂无评论

*请不要发布广告、病毒连接以及违反祖国法律的言论!发表评论

打开表情 因为垃圾评论和广告评论的缘故,需要一段时间才能显示,请谅解

XHTML: 您可以使用的标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>