Title: Not compatible with WPML (WordPress Multilanguage
Last modified: August 21, 2016

---

# Not compatible with WPML (WordPress Multilanguage

 *  [Bart De Vuyst](https://wordpress.org/support/users/bartdevuyst/)
 * (@bartdevuyst)
 * [12 years ago](https://wordpress.org/support/topic/not-compatible-with-wpml-wordpress-multilanguage/)
 * Hi,
 * I like your plugin but I noticed it’s NOT compatible with WPML.
 * Are you planning to fix this?
 * WPML allows you to translate custom post type and also their slugs… Your plugin
   doesn’t recognise the translated slugs…
 * Bart
 * [https://wordpress.org/plugins/custom-post-type-permalinks/](https://wordpress.org/plugins/custom-post-type-permalinks/)

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

 *  [k8n](https://wordpress.org/support/users/k8n/)
 * (@k8n)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/not-compatible-with-wpml-wordpress-multilanguage/#post-4942494)
 * It seems to be a matter of changing filter priorities. CPTP_Module_Permalink::
   add_hook … set filter priorities to 0, as WPML sets its to 1.
 *  Plugin Author [Toro_Unit (Hiroshi Urabe)](https://wordpress.org/support/users/toro_unit/)
 * (@toro_unit)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/not-compatible-with-wpml-wordpress-multilanguage/#post-4942495)
 * I think that it is not good to set priorities to 0.
 * So, I’m going to add functionality that can override the settings.
 *  [Radovan Smitala](https://wordpress.org/support/users/adorei/)
 * (@adorei)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/not-compatible-with-wpml-wordpress-multilanguage/#post-4942496)
 * Hi,
 * this is quick fix for custom post type slug:
 * in file `CPTP/Module/Permalink.php`
    on line about 49 replace this:
 * `$permalink = str_replace( '%'.$post_type.'_slug%', get_post_type_object( $post_type)-
   >rewrite['slug'], $permalink );`
 * with this:
 * `$permalink = str_replace( '%'.$post_type.'_slug%', WPML_Slug_Translation::get_translated_slug(
   get_post_type_object( $post_type )->rewrite['slug'], ICL_LANGUAGE_CODE), $permalink);`

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

The topic ‘Not compatible with WPML (WordPress Multilanguage’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-permalinks/assets/icon-256x256.png?rev=
   3495884)
 * [Custom Post Type Permalinks](https://wordpress.org/plugins/custom-post-type-permalinks/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-permalinks/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-permalinks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-permalinks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-permalinks/reviews/)

## Tags

 * [permalink](https://wordpress.org/support/topic-tag/permalink/)

 * 3 replies
 * 4 participants
 * Last reply from: [Radovan Smitala](https://wordpress.org/support/users/adorei/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/not-compatible-with-wpml-wordpress-multilanguage/#post-4942496)
 * Status: not resolved