Thank you.
I see what I typed does sound funny. There is only one area with lots of levels of categories and more might come. So I am trying to get navigation that will work with whatever levels of categories a particular area has.
this is actually a really super huge pain.
my additional problem is that I found a way to display the subcategories that works and doesn’t break the site. It is not ideal, because when on a post only the great-grandparent categories show in the sidebar. But I’m no longer tearing my hair out on that.
I have tried plugins but they screwed up my site (like no one could see Pages anymore)
so this is what I’m using, but I can’t combine the example with it. If you could help me out I would REALLY appreciate it. I get this is all volunteer though.
<?php
if (is_category()) {
$this_category = get_category($cat);
}
?>
<?php
if($this_category->category_parent)
$this_category = wp_list_categories('orderby=id&show_count=0&echo=0&exclude=4,6,20&title_li=&depth=2&use_desc_for_title=1&child_of='.$this_category->category_parent."&echo=0"); else
$this_category = wp_list_categories('orderby=id&show_count=0&echo=0&exclude=4,6,20&title_li=&depth=1&use_desc_for_title=1&child_of='.$this_category->cat_ID."&echo=0");
if ($this_category) { ?>
<ul class="leftnav">
<?php echo $this_category; ?>
</ul>
<?php } ?>
https://www44.a2hosting.com/~traffic1/safety