This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
|Contact Form 7 Translation not shown||2||2||7 months, 1 week ago|
| Media and Caption translation is not shown|
Problem: I am trying to translate the caption and description of some images. In the media translation and post translation page everything looks fine. If i open the page "/portfolio-posts/zbi-1611/?lang=en" I always get the German text.
This is the way I load the data caption and description in PHP:
$image_media_caption = wp_get_attachment_caption($image_id);
Solution: I consulted our specialists and the cause of the issue might be that you aren't using our filters to translate the post ID that is being passed to the function.
For example: wp_get_attachment_caption(apply_filters( 'wpml_object_id', $post_id_here, 'attachment', TRUE));
|2||6||7 months, 1 week ago|