Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#52 closed enhancement (fixed)

category & excludecategory arguments to get_posts() non-functional

Reported by: iioshius Owned by: matt
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


get_posts() is an extremely handy function, but the 'category' argument hasn't been implemented yet. Also, an additional 'excludecategory' argument would make the function even more useful (for example, in excluding linklog entries from the main entry list or from a 'recent posts' list).

Attachments (2)

getposts-patch.diff (1.2 KB) - added by iioshius 11 years ago.
0000052-get_posts.php (1.7 KB) - added by iioshius 11 years ago.

Download all attachments as: .zip

Change History (7)

#2 @iioshius
11 years ago

In retrospect, this might now have been the best place to post this. Please feel free to delete this report if that's the case.

#3 @jmoses
11 years ago

curious as to why this hasn't been copied into the wp source. it seems as if it's functional.

#4 @jmoses
11 years ago

added a patch that makes the 'category' parameter of get_posts work correctly.

Diff applies to functions.php,1.205

#5 @ryan
11 years ago

  • Patch set to Yes

#6 @matt
11 years ago

  • fixed_in_version set to 1.5
  • Owner changed from anonymous to matt
  • Resolution changed from 10 to 20
  • Status changed from new to closed

Patch applied

Note: See TracTickets for help on using tickets.