Solved

wordpress, order edit page post list by status?

Posted on 2010-11-23
2
248 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 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
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…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. 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 : Go t…

696 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