Polylang fallback language not working even with patch
-
I reference this posting on stackexchange of me:
https://wordpress.stackexchange.com/questions/136999/polylang-fallback-language-does-not-get-activated-even-with-patch<?php //my patched archive.php to display posts of a category get_header(); ?> <div id="content"> <?php global $wp_query; query_posts(array_merge($wp_query->query, array('post_type' => 'post', 'lang' => 'de'))); ?> <?php if (have_posts()) : ?> ////... handle the posts... but we never reach this part <?php else : ?> <?php echo 'sooorrry nothing found :('; ?> <?php endif; ?> </div><!-- end #content --> <?php get_sidebar(); ?> <?php get_footer(); ?>
I was reading this thread
I patched my archive.php
I never get different language posts. I set all the posts to default to german (de). It works nice for the german language, since all posts are german, but nothing shows, even using this patch. Am I missing something?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Polylang fallback language not working even with patch’ is closed to new replies.