WIN+IIS主机下WordPress中文标签与分类的完美解决方法
关于自定义标签和分类无法显示的。主要是由于编码方式造成的。
一、中文标签页面无法显示的解决办法:
1.首先打开/wp-includes/rewrite.php 文件(都明白吧)
2.打开rewrite.php找到下面的一段代码:
function get_tag_permastruct() {
if (isset($this->tag_structure)) {
return $this->tag_structure;
}
if (empty($this->permalink_structure)) {
$this->tag_structure = ”;
return false;
}
if (empty($this->tag_base))
$this->tag_structure = $this->front . ‘tag/’;
else
$this->tag_structure = $this->tag_base . ‘/’;
$this->tag_structure .= ‘%tag%’;
return $this->tag_structure;3.修改if (empty($this->permalink_structure)) {这段代码为if (! empty($this->permalink_structure)) { 也就是在empty前面添加一个英文呢感叹号(!)。
注意:rewrite.php下有很多处都有if (empty($this->permalink_structure)) { 这样的代码,一定要找到相应的位置。
4.收工。
二、中文分类页面无法显示的解决办法:
1.进入后台,管理–页面–标题框中下面有一个永久链接选项。编辑为英文链接即可。

2 条评论
@pan
LINUX和UNIX好些
感谢你提供的方法,TAG终于能翻页了,但是搜索页面还是不能翻页。wordpress装在WINDOWS下真是不爽啊!