Problem getting the post meta
-
First of all congratulations on this great plugin! Love it’s lightness and great performance! I just have a litle problem:
I use custom fields in my theme, here is the code I use to get them in and display them in the front-end:
<?php $key="my-custom-field-key"; $value =get_post_meta($post->ID, $key, true); echo $value; ?>
This is working in my main language, but when it comes to the translated post it won’t show the custom field value. Of course I activated the custom fields sync in polylang settings.
Any ideas?
Thanks a lot!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem getting the post meta’ is closed to new replies.