Display featured image in wordpress admin columns

Show featured image in wordpress admin columns


Show featured image in wordpress admin columns

Add Featured Image Column WordPress

Add a Featured Image wordpress admin columns to identify which posts have featured image or not. It helps to save lots of time to check featured image of every single post. Want to show featured image in wordpress admin columns like above image? I think you will agree with me to display thumbnailpost following this tricks. Simply Add this wordpress code to your theme functions.php file to display post thumbnails in your admin area.

add_filter('manage_posts_columns', 'posts_columns', 5);
add_action('manage_posts_custom_column', 'posts_custom_columns', 5, 2);
function posts_columns($defaults){
    $defaults['riv_post_thumbs'] = __('Thumbs');
    return $defaults;
}
function posts_custom_columns($column_name, $id){
  if($column_name === 'riv_post_thumbs'){
        echo the_post_thumbnail( 'featured-thumbnail' );
    }
}

I hope this WordPress code snippets working fine to display featured image in you wordpress admin columns. I know this featured image code snippets working fine if you have any problem to display featured image in wordpress admin columns let me know through comment section.


Tags: single column wordpress theme, wordpress control panel,featured image, thumbnailpost,wordpress code, wordpress admin columns

About Masum Billah

Show featured image in wordpress admin columns 1stWebSuite website seo tool is a free website ranking tool site provides a lot of on page and off page seo useful tools for you. On this site, we have a large number of website ranking tools



Discuss about: Display featured image in wordpress admin columns


Newsletter Subscription

Enter your email address:

Delivered by FeedBurner