I'm building a bilingual website ( arabic and english )

I'm using a plugin called search and filter that gives me the possibility to filter by category,post date..etc

I've an issue when I switch to english language and make a search from that plugin's form it gives results in arabic...

this is my code below

    <?php $current_language = get_bloginfo("language");  ?>
                   <?php if ($current_language=="ar") : ?>

         echo do_shortcode("[INSERT_ELEMENTOR id='3647']"); 

        <?php echo do_shortcode( '[searchandfilter fields="search,category,post_date" types=",daterange" submit_label="بحث" search_placeholder="كلمة البحث..." ]' ); ?>
        <?php astra_archive_header(); ?>
<? else: ?>
         echo do_shortcode("[INSERT_ELEMENTOR id='4523']"); 


        <?php echo do_shortcode( '[searchandfilter fields="search,category,post_date" types=",daterange" submit_label="Search" search_placeholder=" Keyword..." ]' ); ?>
        <?php astra_archive_header(); ?>
<? endif; ?>

when I use

<?php get_search_form(); ?>

everything works correctly but that's not the form that I want...

I would like to know how can I add a prefix for example " /en" whenever I make a search in english language..

I want

instead of


Thank you in advance

  • Welcome to WPSE. Your question is considered off-topic for this site. Questions about third-partly plugins are difficult as these require detailed knowledge of the workings of those plugins and themes, support is difficult and with thousands of plugins and themes available such knowledge is very specialized. Please contact the plugin author support options. – jdm2112 Apr 22 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.