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 use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.