Make WordPress Core

Opened 22 years ago

Closed 22 years ago

#52 closed enhancement (fixed)

category & excludecategory arguments to get_posts() non-functional

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

Description

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 21 years ago.
getposts-patch.diff (1.2 KB ) - added by iioshius 21 years ago.

Download all attachments as: .zip

Change History (7)

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

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

#4 @jmoses
22 years ago

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

Diff applies to functions.php,1.205

#5 @ryan
22 years ago

  • PatchYes

#6 @matt
22 years ago

  • fixed_in_version1.5
  • Owner changed from anonymous to matt
  • Resolution 1020
  • Status newclosed

Patch applied

Note: See TracTickets for help on using tickets.