WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im using the following code to create custom columns in the backend of the posts menu.

add_filter('manage_edit-post_columns', 'post_edit_columns');
    function post_edit_columns( $columns )
        $columns = array(
            'cb'            => '<input type="checkbox" />',
            'title'         => 'Module Title',
            'categories'    => 'Section',
            'menu_order'    => 'Order',
            'unlock'        => 'Unlock',
            'date'          => 'Date'
        return $columns;

The title column outputs an ASC / DESC link. How can i add this ordering link to the other columns?

share|improve this question
check out this tutorial: scribu.net/wordpress/custom-sortable-columns.html – Milo Sep 21 '11 at 16:52
Perfect! Thanks. – cnotethegr8 Sep 21 '11 at 17:20
@Milo please move your solution to an answer – Rarst Oct 14 '11 at 23:09

There is a plugin that let's you add/remove columns, and makes them sort. You dont need any coding.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.