post_type => 'post & the_curlang()
-
Hallo people.
I have a very weird problem. In the front-page template i execute 2 wp_querys:
1st.
$args = array(
‘post_type’ => ‘announcement‘,
‘posts_per_page’ => -1,
‘lang’ => the_curlang(),
‘orderby’ => ‘date’,
‘order’ => ‘DASC’
);2nd.
$args = array(
‘post_type’ => ‘post‘,
‘posts_per_page’ => -1,
‘lang’ => the_curlang(),
‘orderby’ => ‘date’,
‘order’ => ‘DASC’
);The 2nd query doenst work properly. It returns the home page and not the blog posts. If i remove the_curlang() option it works just fine.
Any idea what causes the confict?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘post_type => 'post & the_curlang()’ is closed to new replies.