How to query the custom fields by language?

Question

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.

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/how-to-query-the-custom-fields-by-language/">

How to query the custom fields by language?</a>
0
, , , user3538235 1 month 0 Answers 31 views 0

Leave an answer