disable translation in wp_query
-
How do I stop Polylang working within a custom WP_Query?
I am trying this$language = get_post_language(XX);
$args = array(
‘post_type’ => ‘any’,
‘p’=> XX,
‘language’ => $language,
)
but the WP_Query is returning the translation for the current page language. How do I disable polylang translation in this instance?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘disable translation in wp_query’ is closed to new replies.