Hi Guys,
I have a bunch of conditionals within a navbar and just need this last piece for it to work perfectly.
What I have is:
Category1
link1
link2
link3
Category2
link4
link5
Category3
link6
link7
Etc
I'm using a very basic javascript to show/ hide each child menu
Now ... I need to do a if/ else to show 1 line:
<?php if ( is_category('1') ) {
echo '<ul class="show" id="packaging">';
} else {
echo '<ul class="hide" id="packaging">';
}
?>
This works fine on the first child menu but not on any of the others.
Any reason why not?
I can PM the URL if need be.
TIA