List posts in all languages but stay in current language when clicking on link
-
I need to make a specific page where all the posts are listed in all languages.
It works with
<?php $news = get_posts(array( 'post_type' => 'post', 'lang' => 'fr,nl', 'showposts' => -1 )); ?>
But for example if my current language is ‘fr’ and I click on a ‘nl’ post, the url is ‘example.com/nl/my-post-written-in-nederlands’ and the site switch in ‘nl’. Is there a way to avoid this behaviour and display the ‘nl’ post in the current language (‘fr’) ? Something like ‘example.com/fr/my-post-written-in-nederlands’.
Yes I know it’s almost like I don’t need Polylang on this page ??
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘List posts in all languages but stay in current language when clicking on link’ is closed to new replies.