IIS下wordpress中文标签与分类的解决方法

2009年5月16日 | 标签: ,

原帖地址:http://wordpress.org.cn/thread-23025-1-1.html
中文标签页面无法显示的解决办法
1.首先打开/wp-includes/rewrite.php 文件
2.打开rewrite.php找到下面的一段代码:

  1. function get_tag_permastruct() {
  2. if (isset($this->tag_structure)) {
  3. return $this->tag_structure;
  4. }
  5. if (empty($this->permalink_structure)) {

3.修改

  1. if (empty($this->permalink_structure)) {

这段代码为

  1. if (! empty($this->permalink_structure)) {

也就是在empty前面添加一个英文呢感叹号(!).
注意:rewrite.php下有很多处都有

  1. if (empty($this->permalink_structure)) {

这样的代码,一定要找到相应的位置.
二.中文分类页面无法显示的解决办法:
1.进入后台,管理–页面–标题框中下面有一个永久链接选项,编辑为英文链接即可.

  1. 2009年5月17日13:28

    沙发

  2. 自考网
    2009年5月17日17:19

    以抢沙发为耻,以做板凳为荣。

  3. 2009年5月19日14:37

    怎么还不更新,
    白来了好几趟。

    以常来为荣,以不更新为耻。

  4. admin
    2009年5月19日18:01

    我这都成八卦博客了..

本文的评论功能被关闭了.