• Hi, the (WPML) language switcher on the Search results page fails to render. When I check “icl_get_languages()” or “apply_filters( ‘wpml_active_languages’, NULL, ‘orderby=id&order=desc’ )”, they return empty arrays as if there were no active languages.

    The switcher works correctly on any other page. And if I disable this plugin it starts working on the search results page as well.

Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    I tried reproducing this on my test site, but I can’t: the language switcher works as expected, and icl_get_languages() returns the correct list of languages.

    Relevanssi shouldn’t change anything about this, and Relevanssi itself relies on apply_filters( 'wpml_active_languages' ) to get the language information.

    So, the problem is not just Relevanssi. There’s something else involved in this. Have you tried deactivating other plugins?

Viewing 1 replies (of 1 total)
  • The topic ‘WPML language switcher breaks when I enable this plugin’ is closed to new replies.