Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Simpas81

    (@laboratorio35)

    I found this code working for qTranslate:

    remove_filter(‘get_search_form’, ‘qtrans_fixSearchForm’,0);
    add_filter(‘get_search_form’, ‘qtrans_fixSearchForm_yop’, 10, 1);
    function qtrans_fixSearchForm_yop($form) {
    //$form = preg_replace(‘#action=”[^”]*”#’,’action=”‘.trailingslashit(qtrans_convertURL(get_home_url())).'”‘,$form);

    //qtranslate Slug compatibilidad, no duplicar en url idioma /es/es/ al buscar (search)
    $form = preg_replace(‘#action=”[^”]*”#’,’action=”‘.trailingslashit(get_home_url()).'”‘,$form);

    return $form;
    }

    Can I have the same code for mqTranslate?

    Thanks
    S.

    Chriesisteinli

    (@chriesisteinli)

    Hello

    I have the same problem on my English/German page. The search field only works on the German pages. If you search for something on a English page you receive the message “Page not found”.

    Thanks for your help!

    Thread Starter Simpas81

    (@laboratorio35)

    If you are using woocommerce I suggest to avoid the WP Search field but to use the Woocommerce Search Widget.. that is working fine.

    carla.zaiter

    (@carlazaiter)

    I have the same problem the search form displays results from all the languages.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search does not recognize products for all languages’ is closed to new replies.