?
Solved

wordpress, order edit page post list by status?

Posted on 2010-11-23
2
Medium Priority
?
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
Dzynit earned 2000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

If you are looking for plug-ins to add functions to your WordPress small business web site, take some time to read though this comprehensive list.  These are all the plugins I use for my customers WordPress web sites, as well as my own.  Be sure to …
I want to start by talking about the use of plug-ins for WordPress. I started a web-site for a company I was working for a few years ago; I had extremely basic knowledge of HTML. I am a Graphic Designer by trade so I invited the opportunity as a cha…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

771 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