Bilingual Custom Field Labels/Names?
-
Hey there,
first of all, thanks a lot for your work on Sublanguage!
So far it could provide any functionality I needed, but I fear that I just encountered a limitation to that:I am hosting a site with CPTs which have required custom fields (provided by ACF). Logically, they are part of the content and should give structured information on the respective entry. For proper display and comprehensibility, the data is output as a list of items formatted like this:
{FIELD LABEL}: {FIELD VALUE}As there are different fields across the multiple CPTs, I implemented the ouput through a loop that prints the variables above. I didn’t hardcore output for every single custom field.
Sublanguage gives me the possibility to offer multilingual input for the custom field’s value, but I couldn’t find any possibility to change the fields’ labels. Since the values are mostly names, I actually only need bilingual labels, no values!
What I am looking for is an easy solution to have bilingual labels which WordPress/ACF/Sublanguage can handle correctly. I don’t know if it is possible to do this properly, so I wondered if it would be possible to use the field name property for one language and the field label property for another language and display one or the other according to the language that has been selected through the Sublanguage menu/widget.
The topic ‘Bilingual Custom Field Labels/Names?’ is closed to new replies.