• Hi!

    We have a client site that has Relevanssi Premium (clients account) and WPML running. In the site’s header we have language selection menu with active languages (two at the moment) generated dynamically, and that is based on the returned array of WPML filter (https://wpml.org/wpml-hook/wpml_active_languages/).

    After updating Relevanssi Premium to the latest version language menu stopped working on the search page. Filter returns an empty array on search page, on all other pages it works as should.

    I tested it in local environment, with version 2.9.0 language menu works, with 2.15.3.1 it does not. I did hard coded fallback, if WPML returns empty array, and now the search page language menu works also, but if you have any ideas to solve this problem properly, I would appreciate it.

    Thanks in advance, JJ.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jjbaileys

    (@jjbaileys)

    .. And I forgot to mention that if I disable Relevanssi, language menu works in the search page as it should.

    JJ

    Plugin Author Mikko Saari

    (@msaari)

    First of all for forum mods, this question also applies to the free version of Relevanssi, so it’s relevant here.

    After 2.9, Relevanssi added some language features that do use wpml_active_languages, but those shouldn’t affect other use of the filter hook.

    How would I go about reproducing this error? If I add

    var_dump(apply_filters( 'wpml_active_languages', null ) );

    to the search results template, it prints out the correct output.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WPML & Relevanssi conflict’ is closed to new replies.