This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Search in all languages of a site, with a single form

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search in all languages of a site, with a single form

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37175
    abanys28abanys28
    Participant

    Hello,

    I have 4 languages on the site, managed with Polylang.

    But these 4 languages only concern the pages.

    For the posts, I have only one language, French.
    My search form only search for posts, that’s what I want.

    If I place the search form on a French page, everything works fine.
    https://www.sophrologiesuisse.com/participer-a-un-cours/liste-de-tous-les-cours/
    If I place the search form on a page in another language, it finds nothing.
    https://www.sophrologiesuisse.com/de/an-einem-kurs-teilnehmen/

    So I assume that the search form automatically searches only in the language of the page it is on.
    Is it possible to make it search in all languages at once?

    Sincerely,

    Denis

    #37179
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Denis,

    Yes – by default the plugin searches the currently active language. If there are no translations, then it may not give you any results.

    You can turn that feature off here – and in that case it will search every content regardless of the language.

    #37180
    abanys28abanys28
    Participant

    Hello,
    Thank you very much for your quick response, that’s exactly the solution!
    Sincerely,
    Denis

    #37181
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.