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.

This seems like a simple thing to do, but I haven't been able to figure it out. What I'd like to do is add the time a post is scheduled to the date stamp on the list of posts. I know this means modifying the columns, and there's a way to do it that seems fairly simple. Has anyone done this, and can you suggest some code?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Try this:

add_filter('manage_posts_columns', 'posts_columns', 5);
add_action('manage_posts_custom_column', 'posts_custom_columns', 5, 2);
function posts_columns($defaults){
    $defaults['your_date_col'] = __('Date');
    return $defaults;
}
function posts_custom_columns($column_name, $id){
    if($column_name === 'your_date_col'){
        echo the_date();
    }
}
share|improve this answer
    
Fantastic, works like a charm. Posted a followup question. –  Justin Long Jun 3 '11 at 19:42
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.