• My website has two languages ??and when the third step is Year, the results are always in the default language even though the language I’m looking for is another language. Is there any way that can help me find the correct language?

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

    (@hanakim)

    I have used Polylang

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Try to replace:

    
        return home_url( '/' );
    

    with:

    
        global $polylang;
        
        if (isset($polylang) && isset($polylang->links_model) && $polylang->links_model->using_permalinks) {       
          return $polylang->curlang->search_url;
        }
        
        return home_url( '/' );
    

    in the file:
    wp-content/plugins/ymm-search/Block/Selector.php

    Stanislav

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘filter by language’ is closed to new replies.