Title: [Plugin: Custom Post Type Permalinks] WPML Compatibility request
Last modified: August 20, 2016

---

# [Plugin: Custom Post Type Permalinks] WPML Compatibility request

 *  [owen.hoskins](https://wordpress.org/support/users/owenhoskins/)
 * (@owenhoskins)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-permalinks-wpml-compatibility-request/)
 * Hello, First off, thanks for the great plugin.
 * I was using it to prepend the “custom-post-type” to my “custom-taxonomy” permalink
   for the taxonomy pages, however now that I’ve installed WPML, the language codes
   that it inserts before are ignored, breaking the permalink.
 * Please let me know if this is a possibility.
 * Many thanks,
    Owen
 * [http://wordpress.org/extend/plugins/custom-post-type-permalinks/](http://wordpress.org/extend/plugins/custom-post-type-permalinks/)

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

 *  [ssj_costy](https://wordpress.org/support/users/ssj_costy/)
 * (@ssj_costy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-permalinks-wpml-compatibility-request/#post-3050649)
 * I also stumbled on the same problem. I’m actually trying to make another permalink
   filter in my theme’s functions.php, to add the language code.
    But I would like
   to know if this is going to be addressed.
 * Thanks,
    Costin
 *  [nestor_ps](https://wordpress.org/support/users/nestor_ps/)
 * (@nestor_ps)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-permalinks-wpml-compatibility-request/#post-3050673)
 * Hi,
    I’ve found a solution:
 * In the plugin file change this line:
 * add_filter( ‘post_type_link’, array(&$this,’set_permalink’), 10, 3 );
 * to
 * add_filter( ‘post_type_link’, array(&$this,’set_permalink’), 1, 3 );
 * Hope it helps
 *  [Surbma](https://wordpress.org/support/users/surbma/)
 * (@surbma)
 * [13 years ago](https://wordpress.org/support/topic/plugin-custom-post-type-permalinks-wpml-compatibility-request/#post-3050689)
 * I can confirm, that nestor_ps’s fix is working for me. Please make this fix for
   this plugin in the next version! Thank you!

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

The topic ‘[Plugin: Custom Post Type Permalinks] WPML Compatibility request’ 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/)

 * 3 replies
 * 4 participants
 * Last reply from: [Surbma](https://wordpress.org/support/users/surbma/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/plugin-custom-post-type-permalinks-wpml-compatibility-request/#post-3050689)
 * Status: not resolved