Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
2  
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
1  
@Milo please move your solution to an answer –  Rarst Oct 14 '11 at 23:09
add comment

1 Answer 1

There is a plugin that let's you add/remove columns, and makes them sort. You dont need any coding. Check it out: http://wordpress.org/extend/plugins/codepress-admin-columns/

share|improve this answer
add comment

Your Answer

 
discard

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.