Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

fcornia on "[Plugin: Polylang] Showing post without multilingual support"

$
0
0

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://wordpress.org/plugins/polylang/


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>