Make WordPress Core

Opened 16 years ago

Closed 15 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:
PR Number:


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)

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

Download all attachments as: .zip

Change History (7)

#2 @iioshius
16 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
15 years ago

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

#4 @jmoses
15 years ago

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

Diff applies to functions.php,1.205

#5 @ryan
15 years ago

  • Patch set to Yes

#6 @matt
15 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.