# Featured Image Column in Admin Lists

> Shows a small thumbnail of the featured image next to the title in post lists, for every post type that supports featured images.

- Type: PHP
- Runs: Admin only
- Category: [Admin](https://wpide.com/library/category/admin/)
- Tags: columns, thumbnail, featured-image
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/featured-image-column/

## Code

```php
add_action( 'admin_init', function () {
    foreach ( get_post_types( array( 'show_ui' => true ) ) as $post_type ) {
        if ( in_array( $post_type, array( 'attachment', 'product' ), true ) || ! post_type_supports( $post_type, 'thumbnail' ) ) {
            continue;
        }

        add_filter( "manage_{$post_type}_posts_columns", function ( $columns ) {
            $first = array_slice( $columns, 0, 1, true );

            return array_merge( $first, array( 'wpide_thumb' => 'Image' ), array_slice( $columns, 1, null, true ) );
        } );

        add_action( "manage_{$post_type}_posts_custom_column", function ( $column, $post_id ) {
            if ( 'wpide_thumb' !== $column ) {
                return;
            }

            $thumbnail = get_the_post_thumbnail( $post_id, array( 56, 56 ) );
            echo $thumbnail ? $thumbnail : '&mdash;';
        }, 10, 2 );
    }
} );

add_action( 'admin_head', function () {
    echo '<style>.fixed .column-wpide_thumb{width:64px;}.column-wpide_thumb img{max-width:56px;height:auto;border-radius:3px;}</style>';
} );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Featured Image Column 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/
