I still haven’t resolved this problem so let’s try this again.
Here is my full category.php code: https://pastebin.com/LDwrDaxh
Now then, if I replace single_cat_title()
with
$cats = explode(',', $_REQUEST['cat']);
$args = array(
'include' => $cats,
'field' => 'name'
);
$term_names = get_terms('category', $args);
if(!empty($term_names)) : foreach($term_names as $term_name) :
echo $term_name;
endforeach;
endif;
The content section goes blank. How would I resolve this?