Polylang plugin version: 2.3.10
WordLift plugin version: 3.19.4
WordPress version: 4.9.8
Your plugin adds a filter to
parse_queryin the frontend.php file:
add_action( 'parse_query', array( $this, 'parse_query' ), 6 );
The callback is adding a taxonomy filter for the language taxonomy even though some of the queried post types aren’t configured for translation ( in the query args:
'post_type' => array( 'post', 'page', 'entity', where
entityisn’t translatable). Your filter is breaking the query because entities aren’t returned anymore, since they’re not bound to the language taxonomy.
I don’t think the Polylang plugin should add a requirement for the language taxonomy when the query involves post types that aren’t configured for translation.
Can you please fix it?
PS: I am available if you need further details.
- The topic ‘`parse_query` filter adds language taxonomy to query’ is closed to new replies.