WP manage categories: order by ID

Posted on December 6, 2007  | Permalink
Filed under Web & Computers

What i hate about wordpress, is when you go to edit your categories (and in case you have a lot of categories), they are all mixed up. I usually sort my cats on the website by ID, so that’s what i want in the wp-admin as well. I searched my ass off to get this functionality. So here is the trick:

Update: In Wordpress 2.3.1 go to wp-admin/edit-pages.php to line 67, which should look like this:

<?php
wp("post_type=page&orderby=menu_order&what_to_show=posts$post_status_q
&posts_per_page=-1&posts_per_archive_page=-1&order=asc");

Now change it to the following:

<?php
wp("post_type=page&orderby=ID&what_to_show=posts$post_status_q
&posts_per_page=-1&posts_per_archive_page=-1&order=asc");

 
Would be splendid if WP would give us an option to choose sort order via drop-down box!

Comments

 

Comments by unregistered visitors will wait for approval. Registration removes comment activation and is dead simple.




You can use <strong>, <em>, <a>, <img> and <blockquote>. Code should be wrapped in `backticks`. — Nasty comments might enjoy moderation.

You can add images to your comment by clicking here.

© 2008 Manuel Martensen is trying to focus on internationally unknown stories while publishing them on his website with a killer current.