WordPress.org

Ready to get started?Download WordPress

Forums

Is category function parameter question (2 posts)

  1. Murry
    Member
    Posted 9 years ago #

    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

  2. Murry
    Member
    Posted 9 years ago #

    I have look and found this :
    elseif ( is_category('3') || is_category('5') || is_category('6') ) {

    does that dound right ?- testing now --

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.