How can I fix this? I know that replacing the “ó” with a “o” solves the issues for the special character username, but I can’t figure out the blank space one (I’ve tried a dash or removing the blank space).
Any help on how to solve this please? How can I change that function to work correctly? Should I use another function instead?
PS: I even tried this: <a href="<?php echo '/author/'.get_the_author_meta('user_nicename'); ?>" title="<?php the_author(); ?>" rel="author"><?php the_author(); ?></a> and it didn’t work out, same issue for spaces…