How to keep Upper Cases in category slugs
-
Hello, in Admin, when I want to add a new category, I try to change the slug so I can keep the upper cases in the slug, but WP changes to lower cases. I know this is what WP is supposed to do, but I’d like to keep it in upper cases because I am trying to migrate a directory to WordPress that alreay have upper cases (see: https://www.perulinks.com/pages/english/Arts_and_Humanities/), and I can’t change the slug.
Is there a way I can disable this? I read some posts about changing the code in wp-includes/formatting.php file and to do something with the “add_filter(‘sanitize_title’, ‘strtolower’)” but I don’t know exactly what to do.
I’d appreciate any help. If I need to ad some code, please let me know in what file and where (e.g. line number) to change it.
I tried to find a plug-in, but I don’t think there is anything available!
THANKS IN ADVANCE!!!!
CMA
- The topic ‘How to keep Upper Cases in category slugs’ is closed to new replies.