Solved

wordpress, order edit page post list by status?

Posted on 2010-11-23
2
237 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
Comment Utility
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
Comment Utility
Hi Dzynit,

That works perfectly for what I need :)

Thank you,

Chris
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Did you use a default hosting installation of wordpress with the intention of it being your actual site?  Maybe you’ve installed it as a Blog to your current site and recently converted it to be the main site and do away with the old .htm pages.  An…
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 connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now