Home › Forums › General Issues › Use ACF as multilanguage solution › Reply To: Use ACF as multilanguage solution
Performance wise, it may be better to simply provide the fields and use the content if they are completed. This means only one if statement and one or two requests depending on if the first returns something.
On the other hands, see the WP doc on get_post_meta() and calling it without specifying a meta key.
For usability, it would likely be better to provide a checkbox field for the user to select the other languages they want to translate to. This would meant you’d always need to perform at least to requests and possibly a 3rd.
1 – see if translation is on for a language
2 – ? Get the content for the language if it’s selected
3 – ? Get the default language if translation is not selected or if 2 returns no value
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We’re hard at work on ACF 6.1, and Beta 1 is now available 🚀— Advanced Custom Fields (@wp_acf) March 16, 2023
This release includes custom post type and taxonomy registration, an improved experience when selecting field types, PHP 8.1 and 8.2 compatibility, and more!
Let’s take a look 🧵https://t.co/Y0WcAT11l4
© 2023 Advanced Custom Fields.