Display types of posts in edit.php instead of All, Published, Scheduled and Draft

By default, the post list (edit.php) in the admin panel displays a couple of options. It looks like this:

All (10) | Published (8) | Scheduled (1) | Draft (1)

Read More

I want to change this to display different types of posts, either by a custom taxonomy or by category. What I want it to look like is this:

Articles (5) | Releases (5) | Scheduled (1) | Draft (1)

So, the default when opening the Posts list should only include posts marked as articles, while the posts marked as releases should be in another window.

Is there any way to change this? I’ve been trying for a while, but can’t figure it out.

Related posts

Leave a Reply

2 comments

  1. Why don’t you just take post_formats (will be introduced with wp 3.1 in near future). These contain asides (small posts), chat, links, video, audio and so on. In general you just got a new meta-box that allows you to select the format when posting. Behind the scenes post formats are just predefined custom taxonomies bundled in a meta box. I don’t know how they list, but i guess it’s close to what you’re searching for. Else you could switch to custom post types. Those would be listed as separate menu entries, so when you’re on the post-list screen you’d only see the type of post you want to see. You could make custom capabilities that are only added to specific authors so only them could see their “own” post type. Hope that helps.

  2. Changing this area for what you want seems to be very complex. These links are generated from post statuses (no taxonomies in sight) and I don’t see any hooks nearby that might be useful to altering this part of template.

    The one possibility would be to generate links you want (should be doable, since admin pages are ruled by query arguments in URLs just as regular ones) and add them with JavaScript. Since this is not my area of expertise I am not too qualified to write specific JS code.