WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Custom Post Type Permalinks] WPML Compatibility request

[Plugin: Custom Post Type Permalinks] WPML Compatibility request

  • owen.hoskins
    Member

    @owenhoskins

    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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
    Member

    @nestor_ps

    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
    Participant

    @surbma

    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.