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

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37175
    abanys28
    abanys28
    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 Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #37180
    abanys28
    abanys28
    Participant

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

    #37181
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.