Forums Forums Search & Filter Pro Polylang probleme slug & id

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #224866

    Hello,

    I have a problem with the plugin and the translations.

    I have a custom post archive page, filter and post list (it works fine, the plugin works perfectly).

    However, when I pass this same page in another language, there is no more filter and no more post posted (I understood that it was necessary to translate the search form in the desired language with the small polylang flag, but the slug and the id are different from the page with the base language).

    Is there anything planned for the translations?

    My first language uses this code:

    <? php echo do_shortcode ('[searchandfilter id =' 7014 ']');?>
    'search_filter_id' => 7014,

    And my second:

    <? php echo do_shortcode ('[searchandfilter id =' 7017 ']');?>
    'search_filter_id' => 7017,

    Is there a dynamic way for the id I put in my code to understand the link between languages?

    thank you very much

    Anonymous
    #224941

    You can see here my settings and my code: https://www.screencast.com/t/MvoYVVDZx

    Trevor
    #224953

    Our plugin does normally link (in your case) the two forms in the two languages. So, if you ask for the English form on a French language page, our plugin should place the French language form instead.

    Are you editing the template file for the page? And are you editing the wp_query arguments for the page loop?

    Anonymous
    #224969

    I want the french form in the french page, and the english form in the english page, but in my archive-page.php I can put only one id.

    But I solved my problem just by delete my args, thank you, it’s close for me 🙂

    Trevor
    #224971

    Thanks for letting me know. I will close this thread for now.

Viewing 5 posts - 1 through 5 (of 5 total)