WordPress.org

Support

Support » Plugins and Hacks » bug when translating custom post slug with wpml

bug when translating custom post slug with wpml

Viewing 1 replies (of 1 total)
  • Plugin Author Frumph
    Participant

    @frumph

    .. It’s not that easy to swap between slugs between languages as you think it would be with wpml

    the problem will be that you can ‘change’ the slug in the comic->config so that it’s not necessarily a static thing.

    I can add this to the comiceasel.php file:

    'custom_post_type_slug_name' => __('comic','comiceasel'),

    which denotes that the ‘default’ is modifiable; .. but then it is taken as a variable to be used as the slug and I don’t think any translator can touch it at that point..

    changing the slug too will wreak havok, because after the slug is changed you need to redo the rewrite rules each and every page load and that is phenomenally a bad idea

Viewing 1 replies (of 1 total)
  • The topic ‘bug when translating custom post slug with wpml’ is closed to new replies.