# Countdown for Scheduled Posts in Admin Lists

> Shows how long until each scheduled post goes live, such as "in 3 hours", next to the date in admin lists, so the publishing queue is easy to read.

- Type: PHP
- Runs: Admin only
- Category: [Admin](https://wpide.com/library/category/admin/)
- Tags: scheduling, admin-lists, posts
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/admin-scheduled-countdown/

## Code

```php
add_filter( 'post_date_column_status', function ( $status, $post ) {
    if ( 'future' !== $post->post_status ) {
        return $status;
    }

    $time = get_post_time( 'U', true, $post );

    if ( $time <= time() ) {
        return $status . '<br><span style="color:#b32d2e">missed schedule</span>';
    }

    return $status . '<br><span style="color:#2271b1">in ' . esc_html( human_time_diff( $time ) ) . '</span>';
}, 10, 2 );
```

## Notes

Posts whose scheduled time has already passed get a red "missed schedule" label.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Countdown for Scheduled Posts in Admin Lists" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
