Originally Posted by Garyrae
Code:
<li<?php if(is_category('tutorials') || in_category('tutorials')) { echo ' class="current"'; } ?>><a href="<?php get_option('home'); ?>/tutorials/">Tutorials</a></li>
Sorta thing.
Basically that adds ' class="current"' to the <li>, if the user is viewing the category archive for 'Tutorials', or the post they're viewing is in the 'Tutorials' category.
|
I understand that, but the problem is I don't know how to turn my "tutorials" category into an archive page. Not sure if thats making sense, but the closest thing I can think of is how Smashing Magazine is set up.