hello, it’s bee three days… I simplified the question to How to insert a secondary menu (custom menu) into only one category?
thanks
i have two category
cat 1 and cat 2
cat 2 have custom menu / secondary
cat 1 no menu
this what I did that adapted from this link , and not working
<div class=”kategorie”>
<?php if (in_category(array(‘cat2’))) { ?>
<?php wp_nav_menu( array( ‘theme_location’ => ‘secondary’ ) ); ?>
<?php } else { ?>
<?php wp_nav_menu( array( ‘theme_location’ => ‘ ‘ ) ); ?>
<?php } ?>
</div>
thanks
the result: cat 2 and cat 1 was showing another-menu-page / not a category