WordPress Code - Exclude categories on pages
Posted: Wed Nov 05, 2008 11:08 am
I am not grasping the concept of conditional tags and would like some help. I want to exclude categories in the sub nav bar on different pages. I have this code, but don't understand what needs to happen. Can anyone step me thru this?
Code: Select all
<?php
if (is_page('1')) {
echo 'NAVBAR 1 CODE';
} else {
echo 'NAVBAR 2 CODE';
}
?>