• 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)
  • -not sure-
    try to put you condition inside the elseif (! is_front_page) because if you put it after, it will be display only if it’s the front page AND it is not category 3 AND get_option(‘thetheme_featured’) != ‘on’

    Thread Starter jezthomp

    (@jezthomp)

    Sorry, so how would that look, i’m not 100% with how things fit together, i’ve just been experimenting from the codex really…?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘If/Else If query by Category ID?’ is closed to new replies.