Support » Plugin: Multisite Language Switcher » Custom post type link not work

  • I’ve tried to use your filter snippet, like this:
    function my_msls_options_get_permalink( $url, $language ) {
    if ( ‘en_GB’ == $language ) {
    $url = str_replace( ‘/sculture-mobili-design/’, ‘/sculptures-furniture-design/’, $url );
    }
    elseif ( ‘it_IT’ == $language ) {
    $url = str_replace( ‘/sculptures-furniture-design/’, ‘/sculture-mobili-design/’, $url );
    }
    return $url;
    }
    add_filter( ‘msls_options_get_permalink’, ‘my_msls_options_get_permalink’, 10, 2 );

    The rewrite for the category still works, but the custom post type single page don’t change from EN to IT and viceversa, so the changing goes to 404 error.
    Obviuosly i’ve linked the languages in backend.

    Any suggestions?

    • This topic was modified 1 month, 3 weeks ago by  ceska91.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.