Title: User permalink problem with special characters
Last modified: October 12, 2016

---

# User permalink problem with special characters

 *  [Micocico](https://wordpress.org/support/users/micocico/)
 * (@micocico)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/user-permalink-problem-with-special-characters/)
 * Good day,
    I have a problem with permalinks of users.My language is Slovak with
   special characters (example:ľščťžťýáíé). If I change Settings/Users/ “Profile
   Permalink Base to “First and Last Name “, Users permalink look like …/user/Konštantín.
   Kočiš/. (First Name: Konštantín, Last Name: Kočiš). How can I fix it for permalink…/
   user/konstantin.kocis/ Thanks for your reply.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Scott Kondor](https://wordpress.org/support/users/slicedinamerica/)
 * (@slicedinamerica)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/user-permalink-problem-with-special-characters/#post-8507457)
 * Hi Micocico,
 * I had a similar problem with accent characters becoming part of the Ultimate 
   Member user permalink.
 * To fix, I had to add a custom filter to /plugins/ultimate-member/core/um-permalinks.
   php on line 443 inside the “name_dash” case in the switch statement. Unfortunately
   this gets overwritten with each plugin update but it does solve the problem.
 *  $full_name_slug = apply_filters(“um_generate_permalink_filter”, $full_name_slug);
 * With that filter in place, I then added code to my functions.php file to remove
   each character for the URL.
 * function change_um_slug($value)
    { $replacements = array( ‘Á’ => ‘a’, ‘á’ => ‘
   a’, ‘É’ => ‘e’, ‘é’ => ‘e’, ‘Ç’ => ‘c’, ‘ç’ => ‘c’, ‘Í’ => ‘i’, ‘í’ => ‘i’, ‘
   Ñ’ => ‘n’, ‘ñ’ => ‘n’, ‘Ó’ => ‘o’, ‘ó’ => ‘o’, ‘ú’ => ‘u’, ‘Ü’ => ‘u’, ‘ü’ =>‘
   u’, ‘(‘ => ”, ‘)’ => ”, ‘”‘ => ” ); foreach($replacements as $replacement => 
   $replace) { $value = str_replace($replacement, $replace, $value); } return $value;}
   add_filter(‘um_generate_permalink_filter’, ‘change_um_slug’, 10, 2);
 * Hope this works for you and hopefully the Ultimate Member team will include a
   filter in this file in a future release.
 * Regards,
    ~Scott
 *  [schwarzpunkt](https://wordpress.org/support/users/schwarzpunkt/)
 * (@schwarzpunkt)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/user-permalink-problem-with-special-characters/#post-8672794)
 * Thanks for sharing. For me this don’t have affects to permalink. So I changed
   this, add some more specialchars for german, french and italian and paste everything
   into /plugins/ultimate-member/core/um-permalinks.php#442.
 *     ```
       $replacements = array(
           'Á' => 'a',
           'á' => 'a',
           'À' => 'a',
           'à' => 'a',
           'Â' => 'a',
           'â' => 'a',
           'Ä' => 'ae',
           'ä' => 'ae',
           'Æ' => 'ae',
           'æ' => 'ae',
           'É' => 'e',
           'é' => 'e',
           'È' => 'e',
           'è' => 'e',
           'Ê' => 'e',
           'ê' => 'e',
           'Ë' => 'e',
           'ë' => 'e',
           'Ç' => 'c',
           'ç' => 'c',
           'Ì' => 'i',
           'ì' => 'i',
           'Í' => 'i',
           'í' => 'i',
           'Î' => 'i',
           'î' => 'i',
           'Ï' => 'i',
           'ï' => 'i',
           'Ñ' => 'n',
           'ñ' => 'n',
           'Ò' => 'o',
           'ò' => 'o',
           'Ó' => 'o',
           'ó' => 'o',
           'Ô' => 'o',
           'ô' => 'o',
           'Ö' => 'oe',
           'ö' => 'oe',
           'Œ' => 'oe',
           'œ' => 'oe',
           'ß' => 'ss',
           'Ù' => 'u',
           'ù' => 'u',
           'Ú' => 'u',
           'ú' => 'u',
           'û' => 'u',
           'û' => 'u',
           'Ü' => 'ue',
           'ü' => 'ue',
           'Ÿ' => 'y',
           'ÿ' => 'y',
           '(' => '',
           ')' => '',
           '”' => ''
       );
       foreach($replacements as $replacement => $replace)
       	$full_name_slug = str_replace( $replacement , $replace, $full_name_slug );
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘User permalink problem with special characters’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [schwarzpunkt](https://wordpress.org/support/users/schwarzpunkt/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/user-permalink-problem-with-special-characters/#post-8672794)
 * Status: not resolved