Support » Fixing WordPress » Is category function parameter question

  • Hi folks – me again.
    I want to use (unless theres a better function) is_category.
    But is there a way to pass several categories to check at once – excuse the rubbish code – its just the concept :
    elsif is_categoty(1,2,3,4,5) ;
    do something;
    else ;
    for the other cats – do something else
    How do i write that?
    Thanks

Viewing 1 replies (of 1 total)
  • I have look and found this :
    elseif ( is_category(‘3’) || is_category(‘5’) || is_category(‘6’) ) {

    does that dound right ?- testing now —

Viewing 1 replies (of 1 total)
  • The topic ‘Is category function parameter question’ is closed to new replies.