2020-11-09, 08:46:53
The "DY Website Custom Fields" plugin should also work similarly (uses 18n custom fields).
It is enough to create 2 fields for each language version and paste the code in a similar way:
I hope that someone will find these solutions useful and make it easier to manage the website.
It is enough to create 2 fields for each language version and paste the code in a similar way:
PHP Code:
<?php if ($language == 'pl') { ?><?php get_website_custom_field('myname-customfield_pl'); ?><?php } ?>
<?php if ($language == 'en') { ?><?php get_website_custom_field('myname-customfield_en'); ?><?php } ?>
I hope that someone will find these solutions useful and make it easier to manage the website.