Opened 17 years ago
Closed 16 years ago
#6749 closed enhancement (invalid)
in_category needs to be able to take more than one category...
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.5 |
Component: | Template | Keywords: | needs-testing 2nd-opinion has-patch |
Focuses: | Cc: |
Description
Reference:
http://wordpress.org/support/topic/169575
When I first replied, I thought in_category(array(7,8,9,10,11)) would work, since a lot of the 2.5 template functions were enhanced to support multiple checking like this. Imagine my surprise when looking through the code that in_category apparently got missed.
Patch attached. Not sure if it works properly though, it needs testing and feedback.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
First attempt at allowing in_category to support arrays of inputs