Doesn't support Polylang hidden default language
-
When doing a search on the default language with Polylang with the “Hide URL language information for default language” option set the language term doesn’t seem to be included in the query and the same notice that https://www.ads-software.com/support/topic/undefined-variable-term_id mentions is shown.
By adding something like this on line 149 in version 3.4.2 it seems to be possible to solve:
if ($row['field'] == 'term_taxonomy_id') { $term_tax_id = is_array($row['terms']) ? $row['terms'] : array($row['terms']); } else if (...)
The problem is that the “term_taxonomy_id” field isn’t expected by the current query builder and that’s what appears to be sent in when using the hidden default language of Polylang.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Doesn't support Polylang hidden default language’ is closed to new replies.