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 post_type by using featured_image_column_post_types.

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/no-featured-image';
}
add_filter( 'featured_image_column_default_image', 'my_custom_featured_image_column_image' );

Add support for a certain post_type.

function my_custom_featured_image_column_type( $post_types ) {
    return 'gallery'; //$post_type name
}
add_filter( 'featured_image_column_post_types', 'my_custom_featured_image_column_type' );

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

Download

Latest version: Download Featured Image Column v.0.1.7 (2099) [zip]

FAQ

Nothing yet

Changelog

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)
  • Added filter for post_type‘s, thanks to Bill Erickson
  • Fixed error when zero posts exists (very rare).
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.

4 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. 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

Leave a Reply

Comment validation by @