fix to term filters
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -62,6 +62,7 @@ function favourite_list_item($request) { | ... | @@ -62,6 +62,7 @@ function favourite_list_item($request) { |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | function resources_list($atts){ | 64 | function resources_list($atts){ |
| 65 | |||
| 65 | 66 | ||
| 66 | $tax_queries = []; | 67 | $tax_queries = []; |
| 67 | $taxes = explode(',', $atts['tax']); | 68 | $taxes = explode(',', $atts['tax']); |
| ... | @@ -69,7 +70,7 @@ function resources_list($atts){ | ... | @@ -69,7 +70,7 @@ function resources_list($atts){ |
| 69 | 70 | ||
| 70 | foreach($taxes as $tax) { | 71 | foreach($taxes as $tax) { |
| 71 | 72 | ||
| 72 | $all_the_terms = get_terms( $tax ); | 73 | $all_the_terms = get_terms( ['taxonomy'=>$tax, 'hide_empty' => false] ); |
| 73 | 74 | ||
| 74 | //Used to keep track of the filters to sue | 75 | //Used to keep track of the filters to sue |
| 75 | $organized_term_filter[$tax] = $all_the_terms; | 76 | $organized_term_filter[$tax] = $all_the_terms; | ... | ... |
-
Please register or sign in to post a comment