• Resolved randomuser2000

    (@randomuser2000)


    Hi,

    First of all thanks to you for a really great plugin. My problem is when using Polylang the search function doesn’t work. I use two languages: English and Türkçe. The search function not working because Polylang adds the language extension to the url. Like “homepage.com/tr/” And while searching this becomes “homepage.com/tr/?s=search_word”. If i remove “/tr” extension manually the search works.

    Is there a way to do that autamatically?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter randomuser2000

    (@randomuser2000)

    I have already tried reverting to a default theme. But it doesn’t change things. Search works on default language (English) but it is like that: “homepage.com” It doesn’t have extension like the Turkish one.

    Thread Starter randomuser2000

    (@randomuser2000)

    It was the nginx.

    Change try_files $uri $uri/ /index.php; to try_files $uri $uri/ /index.php?$args;

    And that’s it! The plugin works properly now!

    CJ123

    (@cj123)

    I have this same question, but I don’t understand your solution (what is nginx?). Exactly where in the code are you changing? Is this editing the Plugin or the website itself?

    …and i have the same problem with DiVi Theme and polylang PlugIn. The search URL doesnt work.
    Please “randomuser200” can you help me. Where do I have to change this?
    try_files $uri $uri/ /index.php; to try_files $uri $uri/ /index.php?$args;
    best regards
    Tilo

    Please can everybody help me, how an where must i put the code inside?
    The wordpress search button is otherwise useless…

    many thanks
    Tilo

    I’m having the same problem.Anyone found a solution?

    …please someone would be so friendly and would give us the complete solution.
    That would be very nice and would end the misbehavior of the search function.

    many many thanks…

    the solution is…in polylang goto Languages > Settings > URL modifications and enable “The front page url contains the language code instead of the page name or page id” and that will fix the search.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Search function not working with Polylang’ is closed to new replies.