WordPress.org

Forums

Custom Post Type Permalinks
WPML Compatibility request (4 posts)

  1. owen.hoskins
    Member
    Posted 2 years ago #

    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/

  2. ssj_costy
    Member
    Posted 2 years ago #

    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

  3. nestor_ps
    Member
    Posted 2 years ago #

    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

  4. Surbma
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type Permalinks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags