• Resolved janhamer

    (@janhamer)


    our website is bilingual (deu/eng) using wpml. our users have the habit to search across languages. for this it would be very useful if the translations were always indexed with each post. is there a function or a hack for this ?

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

    (@msaari)

    See Relevanssi searching settings: there’s a setting whether to restrict the search to the current language or not. That way you can get all languages in the results.

    It’s also possible to index cross-language content for each post, but that will lead to duplicates in the results, so I don’t recommend that.

    Thread Starter janhamer

    (@janhamer)

    i’m aware of the search settings.
    how do you index cross-language content for each post ?

    Plugin Author Mikko Saari

    (@msaari)

    You can use the relevanssi_content_to_index filter hook to add any content to the post as it’s being indexed. Add a filter function that finds the matching post in the other language, fetch all the content from that post you want to include and add it.

    Thread Starter janhamer

    (@janhamer)

    thanks !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wpml: index translations’ is closed to new replies.