Make WordPress Core

Opened 21 years ago

Closed 20 years ago

#52 closed enhancement (fixed)

category & excludecategory arguments to get_posts() non-functional

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

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

Download all attachments as: .zip

Change History (7)

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

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

#4 @jmoses
21 years ago

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

Diff applies to functions.php,1.205

#5 @ryan
21 years ago

  • Patch set to Yes

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