View Single Post
Old 01-13-2008, 11:04 PM  
bangman
Confirmed User
 
Join Date: Sep 2004
Location: PA, USA
Posts: 5,283
Outside LOOP...
Code:
<?php
 $post = $wp_query->post;
 if ( in_category('2') ) {
// do something if they are in category 2
 } else {
 // show regular menu, or remove this else
 }
 ?>
So what you could do is insert the above code above your regular menu and either include your regular menu in this if statement or do something like:

Code:
<?php

// required for outside of post
 $post = $wp_query->post;

// if the current post is in category 2 
 if ( in_category('2') ) {

// do something if they are in category 2

 } else { ?>

this is my regular menu HTML.<br />
<ul>
<li>Menu Item</li>
<li>Menu Item</li>
<li>Menu Item</li>
</ul>

 <?php } ?>
Let me know if you need some help.
__________________
- David Hall
ICQ: 312744199
bangman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote