Timeline for Theme localization of "slugs" (custom post types, taxonomies)
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 30, 2020 at 15:53 | comment | added | Gchtr | Careful with this! Since WordPress 4.7, users can set a preferred for their profile. If a user has a different language than the site’s language and triggers a permalink flush, e.g. by visiting the permalink settings, then the post slug translation will change to the one of the user! That’s why the accepted answer, which uses an option that loads from the database is actually a much better and fail-safe solution. | |
Apr 20, 2017 at 6:44 | comment | added | Al Rosado | This is by far, the best solution. | |
Oct 10, 2011 at 18:37 | comment | added | chifliiiii | Have you added the proper text domain ? <?php load_theme_textdomain(my_text_domain);?> ? | |
Oct 10, 2011 at 16:47 | comment | added | Naoise Golden | it is basically the same code in another style | |
Oct 10, 2011 at 16:41 | comment | added | Naoise Golden | this didn't work for me | |
Oct 10, 2011 at 14:53 | history | answered | chifliiiii | CC BY-SA 3.0 |