WordPress.org

Forums

Comic Easel
bug when translating custom post slug with wpml (2 posts)

  1. andamira
    Member
    Posted 2 years ago #

    Hi,

    I found a bug when trying to translate the custom slug with wpml. One of their developers found a fix that basically re-registers your custom post type via functions.php. Could you take a look at that and see if it's something you can fix or not?

    All the info is accesible in here:

    http://wpml.org/forums/topic/custom-post-slug-of-comic-easel-part-2/#post-139918

    thank you very much!

    http://wordpress.org/extend/plugins/comic-easel/

  2. Frumph
    Member
    Plugin Author

    Posted 1 year ago #

    .. 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Comic Easel
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic