1.打开/wp-includes/rewrite.php 文件
2.找到下面的一段代码:
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;
......
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前面添加一个英文呢感叹号(!)。
4.保存,完事。