Opened 18 years ago
Closed 17 years ago
#4558 closed enhancement (fixed)
Allow category names in in_category()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | 2.3 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
Currently, in_category() only accepts the ID of a category, whereas is_category() accepts IDs, slugs and names. I think it's useful to be able to check if a post is in a given category based on its name as well as its ID, personally.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [7030]) Support category names in in_category(). Fixes #4558 props robmil.