I’ve got a little problem over here. I want my category link be #current when I’m in a single post also. It works fine when I’m in the category page but when I jump into a single page in a category the current link in my menu don’t appear. Here’s my code:
if (is_category('training') || in_category('') && !is_single())
echo " id=\"current\"";
<a href="<?php bloginfo('url') ?>/show/training">Training</a>
Can you see anything wrong with this?