Forums › Forums › Search & Filter Pro › Polylang probleme slug & id
Tagged: polylang
- This topic has 4 replies, 2 voices, and was last updated 5 years ago by Trevor.
-
Anonymous(Private) October 28, 2019 at 4:22 pm #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(Private) October 29, 2019 at 10:16 am #224941You can see here my settings and my code: https://www.screencast.com/t/MvoYVVDZx
Trevor(Private) October 29, 2019 at 11:15 am #224953Our 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?
-
AuthorPosts