title: WPML display posts of the certain language
body: <p>I have such a problem. On my WordPress site, I use WPML. I have several categories of posts. For each category I have a page template, this is not category.php. In order to display all posts on the page with pagination I use WP_Query. It looks like this.</p>
  
  <pre><code>...
  &lt;?php
  $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
  $query = new WP_Query( array(
    'cat' =&gt; 41,
    'posts_per_page' =&gt; 10,
    'paged' =&gt; $paged
  ));
  ?&gt;
  &lt;?php while ( $query-&gt;have_posts() ) : $query-&gt;the_post(); ?&gt;
  &lt;?php get_template_part('template-parts/content', 'record', get_post_format()); ?&gt;
  &lt;?php endwhile; ?&gt;
  &lt;?php
  echo paginate_links( array(
    'base' =&gt; str_replace( 999999999, '%#%', esc_url( get_pagenum_link( 999999999 ) ) ),
    'total' =&gt; $query-&gt;max_num_pages,
    'current' =&gt; max( 1, get_query_var( 'paged' ) ),
    'format' =&gt; '?paged=%#%',
    'show_all' =&gt; false,
    'type' =&gt; 'plain',
    'end_size' =&gt; 1,
    'mid_size' =&gt; 2,
    'prev_next' =&gt; true,
    'prev_text' =&gt; '&lt;svg class=\'pagination__previous\'&gt;&lt;use xlink:href=' . get_template_directory_uri() . '/img/svg/sprite.svg#menu__arrow' . ' &gt;&lt;/use&gt;&lt;/svg&gt;',
    'next_text' =&gt; '&lt;svg class=\'pagination__next\'&gt;&lt;use xlink:href=' . get_template_directory_uri() . '/img/svg/sprite.svg#menu__arrow' . ' &gt;&lt;/use&gt;&lt;/svg&gt;',
    'add_args' =&gt; false,
    'add_fragment' =&gt; '',
  ));
  ?&gt;
  &lt;?php wp_reset_postdata(); ?&gt;
  ...
  </code></pre>
  
  <p>So cat=41 is ID of a category. And on default RU language the posts are displayed as it is expected. But when I switch to other languages EN or UK (in my situation) the page with posts is empty. Can you advise me how to fix it?</p>