Solved

wordpress, order edit page post list by status?

Posted on 2010-11-23
2
246 Views
Last Modified: 2012-05-10
I have a lot of posts that are imported in as drafts, then I go through and edit and publish.

Does anyone know how I could get the list of posts on the wp-admin/edit.php page to be ordered by status, with all the drafts being displayed first?

Right now, they are ordered by date. So I end up with a mix of published and drafts showing, it would be easier if all the drafts were at the top.

I do realize I can click on the 'drafts' link and it will show just drafts, but as soon as I publish one, it brings me back to the regular edit.php page with them mixed, so I have to go through that extra step of clicking on drafts each time. Would be much more efficient if I could just order by status on the edit page.

Thanks for any help :)  Chris
0
Comment
Question by:St_Aug_Beach_Bum
2 Comments
 
LVL 14

Accepted Solution

by:
Dzynit earned 500 total points
ID: 34207687
This might not be the ideal solution, but does work.

I added this just after require_once('./admin.php');
in wp-admin/edit.php
 
if (!isset($_GET['post_status'])) {
	$post_status = 'draft';
}

Open in new window


Being that's editing a core wordpress file, you'd have to redo that on each upgrade.
0
 

Author Comment

by:St_Aug_Beach_Bum
ID: 34210381
Hi Dzynit,

That works perfectly for what I need :)

Thank you,

Chris
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wordpress Horizontal Drop-Down Menu In this tutorial I will show you had to add a WordPress horizontal navigation menu to your theme. I have searched and searched for a good tutorial on creating a WordPress nav menu without adding a plug-in or us…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question