Support » Themes and Templates » conditional headers

  • if ( is_page('5') ) :
      get_header();
    elseif ( in_category('5') ) :
    get_header('wisdom');
      else :
      get_header('home');
    endif;

    Is_category and in_category do not work, however is_page does (at the line where is_category is). I would prefer to use this method if possible, but I have looked at the body class method.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘conditional headers’ is closed to new replies.