View Single Post
10-02-2009, 10:17 PM
#3
jasonm56 is offline jasonm56
jasonm56's Avatar
Status: I love this place
Join date: Jun 2007
Location: Minneapolis
Expertise: xhtml/css, jquery, php, mysql
Software:
 
Posts: 533
iTrader: 1 / 100%
 

jasonm56 is on a distinguished road

Send a message via MSN to jasonm56

  Old

Originally Posted by Garyrae View Post
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.

Reply With Quote