How to check content of Custom Post Field is available
-
Hello,
I have created a custom post field with Types. Can you help me to check if content of Custom Post Field is available show the content in the requested language?
My code looks like this:
<?php $tourist_group = get_post_meta($post->ID,’wpcf-group’,true); ?>
to show the content:
<?php echo $tourist_group; ?>
My site has En – Ja – Cn languages. If this post field has only En, how can I show this content in only English and hide this content in Ja and Cn?
Can someone help? Thank you so much!
- The topic ‘How to check content of Custom Post Field is available’ is closed to new replies.