Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
MSF
/
msf-climate-hub
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
caff6211
authored
2023-11-23 12:46:39 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
copy
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
c2b4fd15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
wp-content/themes/msf-child/single.php
wp-content/themes/msf-child/single.php
View file @
caff621
...
...
@@ -22,11 +22,8 @@ if ($thumbnail_image && isset($thumbnail_image[0])) {
$photo_caption
=
$thumbnail_image
[
0
]
->
post_excerpt
;
$img_alt
=
get_post_meta
(
$post_thumbnail_id
,
'_wp_attachment_image_alt'
,
true
);
$img_title
=
$thumbnail_image
[
0
]
->
post_title
;
$copy
=
get_field
(
'copy'
,
$post_thumbnail_id
);
if
(
!
$copy
){
$en_post_thumbnail_id
=
apply_filters
(
'wpml_object_id'
,
$post_thumbnail_id
,
'attachment'
,
FALSE
,
'en'
);
$copy
=
get_field
(
'copy'
,
$en_post_thumbnail_id
);
}
$copy
=
$thumbnail_image
[
0
]
->
post_title
;
}
...
...
Please
register
or
sign in
to post a comment