schjetne
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Fixing WordPress
In reply to: Permalinks and non-english letters$translate_language = array( 'da' => array( 'NOMO' => 'Dansk, Norsk', 'da_aeoeaa' => 'æ, ø, å → ae, oe, aa' ) ); $translate_system = array(); function sanitize_title_dk($title) { global $translate_language, $translate_system; if (!mb_check_encoding($title, 'ASCII')) { $title=utf8_decode($title); foreach (array_keys($translate_language) as $language) { $choise = 'da'; switch ($choise) { case 'da': $translate_system[] = array ( "Æ"=>"ae","Ø"=>"oe","Å"=>"aa","æ"=>"ae","ø"=>"oe","å"=>"aa" ); } } foreach ($translate_system as $system) { $title = strtr($title, $system); } } return $title; }; add_filter('sanitize_title', 'sanitize_title_dk', 0);Found this somewhere, drop it in your functions.php and problem solved. Easy.
Forum: Fixing WordPress
In reply to: Permalinks and non-english lettersI’ve googled and googled and googled and there is STILL no solution to this problem? The guy I’m building a site for is pretty desperate about this. He says it’s a useless site if he has to make sure there are no æ’s and ø’s in the permalink for every post and page. His users are unfortunately emailing ME about 404 errors.
Does ANYONE know when there’ll be a fix to this?
Viewing 2 replies - 1 through 2 (of 2 total)