Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • $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.

    I’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)