I
I
Ivan Erokhin2020-12-01 19:46:15
Internationalization and localization
Ivan Erokhin, 2020-12-01 19:46:15

Multilingual wordpress?

Before that, I created multilingual sites using the Polylang plugin and advanced custom fields.
But the implementation is not convenient. Maybe there are some more rational plugins?
What is the main problem. This is a duplicate page. And more often it is because of custom pages/posts. When, for example, there is a custom entry "Product". And in fact, the goods that are in one, that in another language are the same. But when changing some parameter that is not related to the language (number / picture), you have to change it on one page and on the other.
I would like something similar to opencart. Where all fields are duplicated for different languages.

As a half measure, I created fields in acf that were named with a language prefix. And output by substituting in the name get_current_language(); . But this only works for some common fields, and will not work with records.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Erokhin, 2020-12-01
@dero

That's it ...
In March, polylang was updated, and now you can customize the fields.
And For the field, you can set the parameter "Synchronize" and then when you change in one language version, the value will change in all :)
Cool.
https://polylang.pro/doc/working-with-acf-pro/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question