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
14d3fc79
authored
2023-08-29 21:42:28 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
target
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
eb3ba6a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
wp-content/themes/msf-child/blocks/relevant-resources/relevant-resources.php
wp-content/themes/msf-child/loop-templates/content-search.php
wp-content/themes/msf-child/blocks/relevant-resources/relevant-resources.php
View file @
14d3fc7
...
...
@@ -104,7 +104,7 @@ foreach($posts as $post ) {
</div>
<?php
endif
;
?>
<div
class=
'content'
>
<?php
echo
'<a class="'
.
$term_list
.
'" href="'
.
$link
.
'">'
.
$post
->
post_title
.
'</a>'
;
<?php
echo
'<a
target="_blank"
class="'
.
$term_list
.
'" href="'
.
$link
.
'">'
.
$post
->
post_title
.
'</a>'
;
if
(
$description
!=
""
){
echo
'<p>'
.
$description
.
'</p>'
;
};
...
...
wp-content/themes/msf-child/loop-templates/content-search.php
View file @
14d3fc7
...
...
@@ -22,7 +22,11 @@ if($post_type == 'attachment') {
}
$target
=
'target="_blank"'
;
}
else
if
(
$post_type
==
'documents'
){
$permalink
=
get_post_meta
(
get_the_ID
(),
'document_link'
,
true
);
$target
=
'target="_blank"'
;
}
$term_list
=
array
();
$terms
=
wp_get_post_terms
(
$post
->
ID
,
'document-format'
);
if
(
!
empty
(
$terms
)
&&
!
is_wp_error
(
$terms
)
){
...
...
Please
register
or
sign in
to post a comment