- Status
- Resolved
Overview of the issue
Since the WordPress 4.8 release, the tax_query query and get_term_by() functions are returning null in secondary languages when you pass the slug or name parameters.
Workaround
As a workaround for this issue pass the ID parameter instead for tax_query query and get_term_by() function. Additionally, you can use our the wpml_object_id function to recover your term translations: