Hello,
In my theme, I use get_post_meta to display some custom fields in the front-end.
This works for the main language, but not the translation. On the translated content, I get no value. There is no error.
Here’s the code I use in the loop.
<?php echo wp_get_attachment_image( get_post_meta( get_the_ID(), '_cmb_people_picture_id', 1 ), 'people' ); ?>
My custom fields are synced.
This is the same issue described here:
https://wordpress.org/support/topic/problem-geting-the-post-meta
Any ideas?
Thanks in advance
https://wordpress.org/plugins/polylang/