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
80d5cd03
authored
2023-08-30 10:42:41 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ddd
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
fa441e11
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
wp-content/themes/msf-child/blocks/relevant-resources/relevant-resources.php
wp-content/themes/msf-child/blocks/relevant-resources/relevant-resources.php
View file @
80d5cd0
...
...
@@ -28,7 +28,7 @@ if( !empty($block['align']) ) {
if
(
$is_preview
)
{
$className
.=
' is-admin'
;
}
$category
ID
=
get_field
(
"categories
"
);
$category
_slug
=
get_field
(
"category
"
);
$title
=
get_field
(
"title"
);
?>
...
...
@@ -40,13 +40,13 @@ $title = get_field( "title" );
'tax_query'
=>
array
(
array
(
'taxonomy'
=>
'categories'
,
'terms'
=>
$category
ID
,
// term id
'field'
=>
'
term_id
'
,
'terms'
=>
$category
_slug
,
// term id
'field'
=>
'
slug
'
,
)
)
);
if
(
$category
ID
==
""
){
if
(
$category
_slug
==
""
){
$args
=
array
(
'post_type'
=>
'attachment'
,
'posts_per_page'
=>
-
1
,
...
...
@@ -61,12 +61,12 @@ $args = array(
'tax_query'
=>
array
(
array
(
'taxonomy'
=>
'categories'
,
'terms'
=>
$category
ID
,
// term id
'field'
=>
'
term_id
'
,
'terms'
=>
$category
_slug
,
// term id
'field'
=>
'
slug
'
,
)
)
);
if
(
$category
ID
==
""
){
if
(
$category
_slug
==
""
){
$args
=
array
(
'post_type'
=>
'documents'
,
'posts_per_page'
=>
-
1
,
...
...
Please
register
or
sign in
to post a comment