Title: Is category function parameter question
Last modified: August 18, 2016

---

# Is category function parameter question

 *  [Murry](https://wordpress.org/support/users/murry/)
 * (@murry)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/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)

 *  Thread Starter [Murry](https://wordpress.org/support/users/murry/)
 * (@murry)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/is-category-function-parameter-question/#post-217763)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Murry](https://wordpress.org/support/users/murry/)
 * Last activity: [20 years, 12 months ago](https://wordpress.org/support/topic/is-category-function-parameter-question/#post-217763)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
