copy
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
2 additions
and
5 deletions
| ... | @@ -22,11 +22,8 @@ if ($thumbnail_image && isset($thumbnail_image[0])) { | ... | @@ -22,11 +22,8 @@ if ($thumbnail_image && isset($thumbnail_image[0])) { |
| 22 | $photo_caption = $thumbnail_image[0]->post_excerpt; | 22 | $photo_caption = $thumbnail_image[0]->post_excerpt; |
| 23 | $img_alt = get_post_meta($post_thumbnail_id , '_wp_attachment_image_alt', true); | 23 | $img_alt = get_post_meta($post_thumbnail_id , '_wp_attachment_image_alt', true); |
| 24 | $img_title = $thumbnail_image[0]->post_title; | 24 | $img_title = $thumbnail_image[0]->post_title; |
| 25 | $copy = get_field('copy', $post_thumbnail_id ); | 25 | $copy = $thumbnail_image[0]->post_title; |
| 26 | if(!$copy){ | 26 | |
| 27 | $en_post_thumbnail_id = apply_filters( 'wpml_object_id', $post_thumbnail_id , 'attachment', FALSE, 'en' ); | ||
| 28 | $copy = get_field('copy', $en_post_thumbnail_id ); | ||
| 29 | } | ||
| 30 | } | 27 | } |
| 31 | 28 | ||
| 32 | 29 | ... | ... |
-
Please register or sign in to post a comment