Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Commonwell
/
broker-site
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
f7173a50
authored
2023-09-13 10:36:35 -0400
by
Jeremy Groot
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix to term filters
1 parent
965d5f23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
wp-content/themes/commonwell-broker/inc/shortcodes-resources.php
wp-content/themes/commonwell-broker/inc/shortcodes-resources.php
View file @
f7173a5
...
...
@@ -62,6 +62,7 @@ function favourite_list_item($request) {
}
function
resources_list
(
$atts
){
$tax_queries
=
[];
$taxes
=
explode
(
','
,
$atts
[
'tax'
]);
...
...
@@ -69,7 +70,7 @@ function resources_list($atts){
foreach
(
$taxes
as
$tax
)
{
$all_the_terms
=
get_terms
(
$tax
);
$all_the_terms
=
get_terms
(
[
'taxonomy'
=>
$tax
,
'hide_empty'
=>
false
]
);
//Used to keep track of the filters to sue
$organized_term_filter
[
$tax
]
=
$all_the_terms
;
...
...
Please
register
or
sign in
to post a comment