WPML

WPML lets you translate URL slugs into different languages. This includes slugs for pages, posts, custom post types, and taxonomies.

A URL slug is the part of a URL that identifies a specific page on a website. Both search engines and users rely on slugs to understand the topic of a page, so it’s important to make them clear and easy to read. 

URL with custom post type and page title slugs
URL with custom post type and page title slugs

Getting Started

In order to translate URL slugs with WPML, install and activate:

  • WPML
  • WPML String Translation

Translate Custom Post Types URL Slugs

To translate custom post type URL slugs:

  1. Go to WPMLSettingsURLs and SEO.
  2. In the Slug translations section, tick Translate base slugs of custom post types and taxonomies and click Save.
  3. Then, go to WPMLSettingsPost Types Translation and set your custom post type to Translatable – only show translated items. Click the Save button under the table.
Setting custom post type to Translatable
Setting custom post type to Translatable
  1. After the page reloads, find your post type again and click the Set different slugs in different languages link under its row. Enter the slug for each language and click the Save button under the table.
Translating slugs for custom post types
Translating slugs for custom post types

Your custom post type slugs will now appear translated in the URL. 

Custom post type in English
Custom post type in English
Custom post type in Spanish
Custom post type in Spanish

Translate Page and Post URL Slugs

By default, when you send pages and posts for translation, WPML automatically translates their URL slugs using the title. 

For example, when translating a page titled ‘Mixed Berry Smoothie’ into Spanish, WPML will use the new page title, ‘Batido de Bayas Mixtas’, when creating the URL:

smooothy.com/es/receta/batido-de-bayas-mixtas/

If you want more control, you can also translate the slugs by yourself:

  1. Go to WPML SettingsURLs and SEO and scroll down to Page URL.
  2. Choose the Translate option and click the Save button in that section.
Setting the option to Translate the page URL
Setting the option to Translate the page URL

You can now translate the URL slug when editing pages in the Advanced Translation Editor

Translating the page URL slug in the Advanced Translation Editor
Translating the page URL slug in the Advanced Translation Editor

Translate Taxonomy URL Slugs

To translate taxonomy URL slugs, follow our taxonomy translation guide

Copy URL to Secondary Language

In addition to translating URL slugs, WPML also lets you ‘copy’ slugs into secondary languages.

Smoothie recipe in English
Smoothie recipe in English
Smoothie recipe in Chinese
Smoothie recipe in Chinese

This is useful when your website has non-ASCII languages (Chinese, Japanese, Arabic, e.g.) and you want to avoid making your URLs look spammy when shared across the web. For example, the following Chinese URL will look like this when copy-pasted:

example.com/煮饭/ → example.com/%E7%85%AE%E9%A5%AD/

To make your URLs look better, you can copy your original URL slugs into other languages:

  1. Go to WPML SettingsLanguages.
  2. In the Manage and Hide Site Languages section, click Edit on the row of the language you want slugs copied to.
  3. In the row’s edit panel, tick Encode non-Latin characters under Encode URL, then click Save.
Ticking Encode non-Latin characters in a language’s row
Ticking Encode non-Latin characters in a language’s row
  1. Next, go to WPML SettingsURLs and SEO.
  2. Under Page URL, choose Copy from original language if translation language uses encoded URLs and save.

Your URL slugs will now copy to your (encoded) secondary language when you translate content.

Get Started with WPML

To translate URL slugs with WPML, you need the Multilingual CMS or Multilingual Agency account type. 

Visit our pricing page to learn more about our plans.

Written by Amir · Last updated March 25, 2026