• Im using this snippet to disable translations in Blog posts:

    function turn_blogposts_translation_off( $post_types, $is_settings ) {
      unset( $post_types['post'] );
      return $post_types;
    }
    add_filter( 'pll_get_post_types', 'turn_blogposts_translation_off', 10, 2 );

    I have site with two lang – PL and EN, and Blog posts are only in PL lang. I would like to query PL Blog posts in EN version. So I need to use in query:

    $args_menu = array (
       ...
       'lang' => 'pl',
       ...
    );

    but is there any way to do that without editing the query code?

    Thanks!

  • The topic ‘How to query posts from other lang?’ is closed to new replies.