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
9b4fec17
authored
2023-11-22 14:28:03 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
qa
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
aa54cbac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
wp-content/themes/msf-child/loop-templates/content-search.php
wp-content/themes/msf-child/loop-templates/content-search.php
View file @
9b4fec1
...
...
@@ -15,16 +15,18 @@ $img = "";
$post_type
=
get_post_type
(
get_the_ID
());
$permalink
=
get_permalink
();
$target
=
''
;
$excerpt
=
get_the_excerpt
();
if
(
$post_type
==
'attachment'
)
{
$permalink
=
wp_get_attachment_url
(
get_the_ID
());
if
(
wp_attachment_is_image
(
get_the_ID
())
)
{
$img
=
wp_get_attachment_url
(
get_the_ID
());
}
$target
=
'target="_blank"'
;
$excerpt
=
get_post_meta
(
get_the_ID
(),
'description'
,
true
);
}
else
if
(
$post_type
==
'documents'
){
$permalink
=
get_post_meta
(
get_the_ID
(),
'document_link'
,
true
);
$target
=
'target="_blank"'
;
$excerpt
=
get_post_meta
(
get_the_ID
(),
'description'
,
true
);
}
$term_list
=
array
();
...
...
@@ -78,7 +80,7 @@ if ( !empty( $terms ) && !is_wp_error( $terms ) ){
<div
class=
"entry-summary"
id=
'content'
>
<?=
str_replace
(
"[...]Read More..."
,
""
,
wp_strip_all_tags
(
get_the_excerpt
()
,
true
));
?>
<?=
str_replace
(
"[...]Read More..."
,
""
,
wp_strip_all_tags
(
$excerpt
,
true
));
?>
</div>
<!-- .entry-summary -->
...
...
Please
register
or
sign in
to post a comment