How to query the custom fields by language?


For each post, there is a custom field name “Function”, the key/value pair is like this:

Key : Functions
Value : <!--en-->Nourishing Yin and invigorating the vital essence of kidneys.<!--:--><!--tw-->滋陰補腎。<!--:-->

The problem is if I simply use get_post_meta , it return string of both language, how can I get the value based on the language?

I am using qTranslate right now, Thanks.

, , , user3538235 4 years 2020-02-16T08:39:07-05:00 0 Answers 97 views 0

Leave an answer