Opened 6 years ago
Closed 4 years ago
#4990 closed defect (bug) (fixed)
get_posts should allow multiple categories
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Template | Version: | 2.3 |
| Severity: | normal | Keywords: | get_posts category has-patch |
| Cc: | filosofo |
Description
get_posts assumes that one is requesting only one category, unlike query_posts. My patch allows you to get multiple categories.
Attachments (1)
Change History (5)
I saw #4943 but decided to submit this patch anyways, because 4943's patch adds new features (category_exclude) and doesn't sanitize the category ids.
Note: See
TracTickets for help on using
tickets.

This is a dupe of #4943, however i like this patch better than the other one, so i'm going to leave them both open.