Opened 7 years ago

Closed 7 years ago

#2340 closed enhancement (fixed)

Manage posts: restrict to one category

Reported by: thomas@… Owned by: westi
Priority: normal Milestone: 2.1
Component: Administration Version: 2.0
Severity: normal Keywords: bg|has-patch bg|commit
Cc:

Description

The attached patch adds a dropdown list on the Manage posts page that allows restricting the display to one category.

Attachments (4)

p (802 bytes) - added by thomas 7 years ago.
edit.php.diff (883 bytes) - added by westi 7 years ago.
Improved patch
2340.diff (910 bytes) - added by westi 7 years ago.
Patch rebased against trunk
2340.2.diff (630 bytes) - added by westi 7 years ago.
Use wp_dropdown_categories instead

Download all attachments as: .zip

Change History (9)

thomas7 years ago

  • Attachment p added
  • Keywords bg|has-patch added
  • Milestone set to 2.1
  • Owner changed from anonymous to westi
  • Status changed from new to assigned

This looks good.

Adding updated patch which also sets the dropdown to show the currently selected category as it doesn't seem to by default - this may be a bug in dropdown_cats as the codex page says:

selected - (integer) Sets the default selected category ID number. Defaults to current category.

westi7 years ago

Improved patch

  • Keywords bg|commit added

westi7 years ago

Patch rebased against trunk

I've rebased my patch against trunk.

I think this is as really useful feature

comment:4   ryan7 years ago

Can we start using wp_dropdown_categories() in the admin?

westi7 years ago

Use wp_dropdown_categories instead

comment:5   ryan7 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [4137]) Add Browse Category dropdown. Props westi and thomas. fixes #2340

Note: See TracTickets for help on using tickets.