Both languages in homepage
-
Hi,
I had the same problem in the past, but I fixed it with some addition in the code of my theme. Now, after the last upgrade of Polylang, the problem is back. Any idea how to fix it please? Here is the code:if ( is_home() ){ $args = array( 'showposts'=> (int) get_option('notebook_homepage_posts'), 'paged'=>$paged, 'post_type' => 'post', 'lang' => get_query_var('lang'), 'category__not_in' => (array) get_option('notebook_exlcats_recent'), ); if ( 'false' == get_option('notebook_duplicate') ){ $args['post__not_in'] = $ids; } query_posts( apply_filters( 'notebook_homepage_args', $args ) ); }
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Both languages in homepage’ is closed to new replies.