Featured Image Column

This plugin has no options. It simply adds a column before the title (far left) the show’s the posts featured image if it’s supported and/or exists.

Add a defualt image simply by filtering you own image in. Use featured_image_column_default_image or filter your own CSS by using featured_image_column_css.

Add support for a custom default image

function my_custom_featured_image_column_image( $image ) {
    if ( !has_post_thumbnail() )
        return trailingslashit( get_stylesheet_directory_uri() ) . 'images/featured-image.png';
}
add_filter( 'featured_image_column_default_image', 'my_custom_featured_image_column_image' );

Add your own CSS to change the size of the image.

/**
 * @use '.featured-image.column-featured-image img {}'
 */
function my_custom_featured_image_css() {
    return trailingslashit( get_stylesheet_directory_uri() ) . 'css/featured-image.css'; //URL to your css
}
add_filter( 'featured_image_column_css', 'my_custom_featured_image_css' );

For question please visit my blog @ http://austinpassy.com

Download

Latest version: Download Featured Image Column v0.1.9 [[zip]] (Downloaded: 2736 times)

FAQ

Nothing yet

Changelog

Version 0.1.9 (3/11/12)
  • Fixed repeat images per posts.
  • Added filter to style sheet, (use your own CSS to make the thumbnail bigger).
Version 0.1.8 (2/16/12)
  • Updated wp_cache_set/get
Version 0.1.7 (1/18/12)
  • Tried to update some code to fix repeated images.
Version 0.1.6 (11/21/11)
  • Code edits by Chris Jean of ithemes.com.
Version 0.1.5 (10/18/11)
  • Fixed latest post image showing up across all posts.
  • Reset the query check.
Version 0.1.4 (10/17/11)
Version 0.1.3 (10/17/11)
  • Added a light caching script for the images.
  • Updated a contributors .org profile name.
Version 0.1.2 (9/30/11)
  • Removed PHP4 constructor.
  • TODO: Fix error when no posts exists.
Version 0.1.1 (9/20/11)
  • Add support for public $post_type‘s that support 'post-thumbnails'.
Version 0.1 (9/14/11)
  • Initial release.

Screenshots

  1. featured-image-column screenshot 1

    Post edit.php screen.

9 Responses

  1. Ron Mayer
    Ron Mayer November 22, 2011 at 12:54 pm |

    Hi Just updated -
    my site is

    korekauai.com

    The FI column now displays the same image for each post.

    Reply
    1. acht
      acht January 10, 2012 at 8:14 am |

      Same as user above

      The FI column now displays the same image for each post.

      Reply
    2. thom
      thom March 8, 2012 at 4:53 pm |

      The if statement on line 124 is returning false on all entries after the first one. I just commented it out (along with the trailing curly bracket at the end of the block) and all of my thumbnails loaded as they should. True, it bypasses the featured image check, but in my tests, this isn’t a problem, and it works just fine. Hope that helps!

      Would also love to see slightly larger thumbnails in the next version! Thanks for the great plug-in!

      Reply
  2. Johan
    Johan February 15, 2012 at 10:29 am |

    Seems to work fine if you remove “post” from line #122:

    change:

    $image = wp_cache_get( 'featured_column_thumbnail', 'post' );

    to:

    $image = wp_cache_get( 'featured_column_thumbnail');
    Reply
    1. anon
      anon March 10, 2012 at 5:17 am |

      Great plugin frosty – seems unique, and just what I was after.

      (And thanks too, to Johan for the fix – works perfectly).

      Reply
  3. Federico Brigante
    Federico Brigante March 11, 2012 at 4:33 pm |

    Hey there, I did some work on the plugin to make it work on ajax-powered quick edits in edit.php.

    get_post_type() seems to start working who-knows-when so I replaced it with $post_type = $_GET['post_type'] which should always work in the admin anyway.

    It also seems like there is no load-admin-ajax.php action so I had to replace it with a more complete detection. This way I also was able to get rid of the load() method.

    Lastly, "Assigning the return value of `new` by reference is deprecated on line 158" so I left the "&" out.

    Reply
  4. Federico Brigante
    Federico Brigante March 11, 2012 at 4:36 pm |

    Hey there, I did some work on the plugin to make it work on ajax-powered quick edits in edit.php.

    get_post_type() seems to start working who-knows-when so I replaced it with $post_type = $_GET['post_type'] which should always work in the admin anyway.

    It also seems like there is no load-admin-ajax.php action so I had to replace it with a more complete detection. This way I also was able to get rid of the load() method.

    Lastly, “Assigning the return value of `new` by reference is deprecated on line 158″ so I left the “&” out.

    Here it is: http://pastebin.com/qNfNbmAa

    Reply
  5. Palak
    Palak May 8, 2012 at 12:03 pm |

    Hello,

    I want to add one more column to set the order of the featured images. is that possible? or do you have any another plugin for the same? please guide me. Its urgent for me.

    Regards,
    Palak

    Reply

Leave a Reply

Comment validation by @