Chinese title and category cause 404 not found

For the titles, the simplest way is to install a plugin called WP Slug Translate.

For the categories, I modified the file rewrite.php.

function get_extra_permastruct($name) {
if ( empty($this->permalink_structure) )
return false;

if ( isset($this->extra_permastructs[$name]) )
return $this->extra_permastructs[$name][‘struct’];

return false;
}

Change if ( empty($this->permalink_structure) ) to if ( !empty($this->permalink_structure) )

Ref: http://www.howsci.com/wordpress-404-error.html

Advertisements