今天WP中文论坛一网友问我win主机下wordpress不支持中文标签问题如何解决,GOOGLE之,解决办法如下:
修改wp-includes/rewrite.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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 = trailingslashit( $this->front . 'tag' ); else $this->tag_structure = trailingslashit( '/' . $this->root . $this->tag_base ); $this->tag_structure .= '%tag%'; return $this->tag_structure; } |
1 2 3 4 |
这里的判断加个 ! 号即可 ,即变成 :
1 2 3 4 |
喜欢这篇文章吗?
请订阅本站 RSS feed 或




1:51 下午, 2010年11月23日沉冰浮水 /
求教,用这种方法后,tag页Title里的第一个字变乱码了。。http://www.imyingzi.com/?tag=%E6%83%85%E6%84%9F
———-
各种不给力。。。
5:45 下午, 2010年09月13日皇家元林 /
这个不错,刚解决一个问题。。。
在此也鄙视一下Win主机
2:51 下午, 2010年08月7日睿智小超人 /
我现在包括标签在内的所有url都改成英文了。
7:26 下午, 2010年07月11日A.shun /
win主机跑php,装wp,本身就是一件吐槽的事情
8:42 下午, 2010年07月24日荒野无灯 /
那确实 。