• I know that this seems strange… i explain.

    I have built a website where all area interested by multilingual are static pages, and the posts are shown only for the standard language in a certain page. For that reason, i would like to keep the posts without the multilingual feature, while running Polylang, to simpify administration for non-expert editors.

    I used the approach suggested by the author few years ago in this post, and it work well for admin-side. I unset $types[‘post’].

    Now i’m experiencing an issue on the front-end, where it seems i’m unable to catch the posts with the standard wp loop:
    `if ( have_posts() ) : while ( have_posts() ) : the_post();’
    while navigating in standard language (the page that call the loop exist only in that language).

    I’m able to do using WP_query in that way:
    WP_Query(array( 'post_type' => 'post')

    But i would to use the loop also.

    So my question is: is possible to disable multilingual support for post while using the loop while polylang is activated? And if yes.. how?

    Thanks in advance.

    https://ww.wp.xz.cn/plugins/polylang/

Viewing 1 replies (of 1 total)
  • Thread Starter fcornia

    (@fcornia)

    I forgot i was talking about posts created WHITOUT the multilingual support active.
    Create post while support is active and then deactivate it, will show the post in the loop, but that’s not the point.

    But i think i have resolved in this way:

    $loop = new WP_Query(array('post_type' => 'post', 'paged' => get_query_var('paged'), 'posts_per_page' => 10));
                                                while ( $loop->have_posts() ) : $loop->the_post();
Viewing 1 replies (of 1 total)

The topic ‘Showing post without multilingual support’ is closed to new replies.