Support » Plugin: xili-language » Search page

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Michel – xiligroup dev


    a search can be done like that :
    if you want to limit to one language add the param &lang=fr_fr
    In the 2014 child-theme of this example, after searching the form is completed with radio buttons to sub-select in a target language (here french).

    For better support, do not hesitate to use the support 6th tab in xili-language settings page.



    Thanks for your quick reply,
    but I did not understand how it works.

    What I want is for:
    When I’m on the site in English and tighten it in the search only returns results of pages marked in English.
    When I’m on the site in Portuguese and tighten it just returns the search results pages marked in Portuguese.

    My code in the search in header.php is as follows:

    <div id="busca">
       <span class="btn"></span>
       <!--h3><label for="s"><?php _e('Search Media');?></label></h3-->
       <form id="searchform" class="blog-search" method="get" action="<?php bloginfo('home') ?>">
    	<input type="search" id="media-search-input" class="txt" name="s" placeholder="<?php _e('Busca');?>" value="<?php the_search_query(); ?>" />
    	<button class="btn" id="enviar_busca" name="enviar_busca" type="submit">OK</button>

    How I should look?

    Plugin Author Michel – xiligroup dev


    if you create the form yourself with php control, you must add in the form the

    <input type="hidden" name="lang" value="xx_yy">'  // where 'xx_yy' is the curlang of the webpage returned by a function like

    Good dev.



    Thank you for your help
    it works! =D

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search page’ is closed to new replies.