If/Else If query by Category ID?
-
I have the following in my header.
It works fine and shows the page top in all the pages, however when your on a page which is a specific category id i want it to show another page top, pagetopteam.
Can this be done, i’ve tried it like the below but with now luck…?
<?php if (is_front_page() && get_option('thetheme_featured') == 'on') include(TEMPLATEPATH . '/includes/featured.php'); elseif (!is_front_page()) include(TEMPLATEPATH . '/includes/pagetop.php'); elseif ( is_category('3') ) include(TEMPLATEPATH . '/includes/pagetopteam.php');?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘If/Else If query by Category ID?’ is closed to new replies.