• Hello, I am using your plugin for a website with multiple languages and I need to make a post type be the only one for every language. Now, when I change the language on this custom post single page it redirects me to home because it cannot find that post in the changed language. Any ideas for me to try? Multiple languages is disabled for this post type.

    Permalinks: /%category%/%postname%/

    https://www.ads-software.com/plugins/polylang/

Viewing 2 replies - 16 through 17 (of 17 total)
  • I didn’t found a solution but here is something interesting :

    add_filter( ‘pll_get_post_types’, ‘remove_cpt_to_pll’, 10, 2 );

    function remove_cpt_to_pll( $post_types, $is_settings ) {

    unset ($post_types[‘post’]);

    return $post_types;
    }

    That’s help a little. The problem is that it’s not working on blog page…

    Any idea ?

    This is definitely possible with some custom queries, please refer to @pabloac comment and the article I wrote on blog.syllogic.in

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Make post available in all languages’ is closed to new replies.