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

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s