Title: Using with Polylang
Last modified: August 21, 2016

---

# Using with Polylang

 *  [Dneiz](https://wordpress.org/support/users/dneiz/)
 * (@dneiz)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/using-with-polylang/)
 * Hi,
 * I’m using this plugin for a client of mine with Polylang.
 * Unfortunally, the results are showing products/items of both languages.
 * Is there a way to filter it by language?
 * How can I solve this problem?
 * Thanks and Regards
 * [https://wordpress.org/plugins/ultimate-wp-query-search-filter/](https://wordpress.org/plugins/ultimate-wp-query-search-filter/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/using-with-polylang/#post-4769717)
 * No I afraid it is not.
    I never used polylang, and I don’t know how the plugin
   works. Maybe you should consult with the Polylang developer regarding this issue.
 *  Thread Starter [Dneiz](https://wordpress.org/support/users/dneiz/)
 * (@dneiz)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/using-with-polylang/#post-4769721)
 * Hii,
 * Thanks for your reply.
 * The plugin is working fine, but there is only an issue with the submit form.
 * For example.
    The searchform is submitting to [http://www.domain.com/results-here](http://www.domain.com/results-here)
 * It should submit to [http://www.domain.com/en/results-here](http://www.domain.com/en/results-here)(
   when english website is active)
 * Thats the whole problem.
 * The normal search of wordpress is working fine.
 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/using-with-polylang/#post-4769725)
 * That’s is the problem, the plugin use the wp default search function to works.
   
   If you don’t want the result redirect to other page, you should try use Ajax 
   result template instead.
 *  Thread Starter [Dneiz](https://wordpress.org/support/users/dneiz/)
 * (@dneiz)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/using-with-polylang/#post-4769748)
 * The Ajax version is showing the same results. So I see the dutch and english 
   items.
 * The results should be only the products of the selected language.
 * Do i need to add an language query in functions?
 * Somehwere here?
 *     ```
       add_filter('uwpqsf_result_tempt', 'customize_output', '', 4);
       function customize_output($results , $arg, $id, $getdata ){
            // The Query
                   $apiclass = new uwpqsfprocess();
                    $query = new WP_Query( $arg );
               ob_start();    $result = '';
                   // The Loop
   
               if ( $query->have_posts() ) {
                   while ( $query->have_posts() ) {
                       $query->the_post();
                                       echo  '<li>'.get_permalink().'</li>';
                   }
                               echo  $apiclass->ajax_pagination($arg['paged'],$query->max_num_pages, 4, $id);
                } else {
                            echo  'no post found';
                       }
                       /* Restore original Post Data */
                       wp_reset_postdata();
   
               $results = ob_get_clean();
       ```
   
 * Thanks!!
 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/using-with-polylang/#post-4769774)
 * Well, this is out of my plugin scope. It depends on the polylang plugin.
 *  [vokshirg](https://wordpress.org/support/users/vokshirg/)
 * (@vokshirg)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-with-polylang/#post-4769880)
 * Hello) have somebody got answer?
 *  Thread Starter [Dneiz](https://wordpress.org/support/users/dneiz/)
 * (@dneiz)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-with-polylang/#post-4769881)
 * Hi vokshirg, did you solved your issue already?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Using with Polylang’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ultimate-wp-query-search-filter_fcfcfc.
   svg)
 * [Ultimate WP Query Search Filter](https://wordpress.org/plugins/ultimate-wp-query-search-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-wp-query-search-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/reviews/)

## Tags

 * [multilangual](https://wordpress.org/support/topic-tag/multilangual/)

 * 7 replies
 * 3 participants
 * Last reply from: [Dneiz](https://wordpress.org/support/users/dneiz/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/using-with-polylang/#post-4769881)
 * Status: not resolved