Default Post thumbnails plugin

With the support for post thumbnails in WordPress 2.9 you can now display a thumbnail image for each post in your site, depending on the theme you are using and if you enabled support for post thumbnails for it.

But if your site already has hundreds of posts, adding a thumbnail image for each one will be a lot of work even if you only want the same image for each old post.

This plugin allows you to specify a default post thumbnail for posts that doesn’t have a thumbnail set.

This plugin requires that you have enabled support for post thumbnails in your theme (you can enable it by adding these 2 lines in your theme functions.php file).

if ( function_exists(‘add_theme_support’) ) {
add_theme_support(‘post-thumbnails’); }

You can select the thumbnail from the images already uploaded to your media library.

You can see more screenshots of this plugin, how to use it and the download link in the Default Post Thumbnails page

11 thoughts on “Default Post thumbnails plugin

  1. Hey,

    I just wanted to mention that the default thumbnail plugin is great, but as far as the extra code you need to put in where do you put the code exactly? I look forward to your reply. And again great plugin. Look forward to using it :)

    • You mean the code to enable thumbnail support in your theme?
      it goes in the functions.php file of your theme. The location inside the file doesn’t matter, you can add it at the end of the file

  2. Hi,
    This is a great idea, thank you very much for developing it. I was looking for something to replace the red “X” boxes that appear as thumbnails for old posts.

    However, I installed your plugin and set the theme to allow thumbnail support and I can see the thumbnail box in the post page BUT the default thumbnail still does not show.

    See for example:

    Do you think it may conflict with the Mimbo theme, which creates its own thumbnails?

    Thanks a lot. Best.

    • Yes, the Mimbo theme uses the first image of the post to create the thumbnail.

      You can modify the function get_post_image in functions.php (line 375) to first check if thumbnail support is enabled and then output the thumbnail using WordPress new functions for thumbnails. If not, let the function current code generate the thumbnail.

      And the problem on the page you used as an example is because the first images on those posts are images hosted somewhere else, not in your site. That’s why the script can’t generate the thumbnail for those posts.

      • Thanks a lot for your reply. So there is no way to make the default thumbnail show for those posts where the images are hosted somewhere else? That is my main problem right now, because I don’t want to go back and edit 300 or so posts.

  3. Hi About your plugin I think I am going to love it once I get it working corrected. I have tried inserting the code to the themes functions.php but I still get the error:
    Your theme does not have post thumbnails support enabled.
    I am using the wordsmith blog theme, would that be my problem.
    I am new to wordpress, I am trying to set Up a site for my 18 month old son whom has some health problems.
    Thanks in advance

    • admin on said:

      I checked the theme and there is no conflict if you add the code to enable post thumbnails.

      I added the code at the bottom of the file like this:

      /*End of Theme Options =======================================*/
      if ( function_exists("add_theme_support") ) {
      add_theme_support("post-thumbnails"); }

  4. preason401 on said:

    Yes This is what I want , thank you very much for developing it.
    I use Mystique Theme with WordPress 2.9.2.
    If I write New Post, Default Thumb appear in Thum Box with Message of “This default thumbnail will be used unless you set a thumbnail for this post.”.

    But After Posts it, Thumbnail is not displayed on Page etc..
    If I do manually addon Thumbnail, It displayed well.

    Mystique has default thumbnail functions.php

    // set up post thumnails
    if (function_exists(‘add_theme_support’)):
    $size = explode(‘x’,get_mystique_option(‘post_thumb’));
    set_post_thumbnail_size($size[0],$size[1], true);
    add_image_size(‘featured-thumbnail’, 64, 64);

    I really hope to display default thumbnail for non-uplist thumbnail user.
    Need your help.

    • I sent you an email with instructions on how to change the way your theme checks for the post thumbnail to display the default image assigned by the plugin

  5. Hi,

    I installed your plugin and it does exactly what I need ;) thx for that.

    But I am struggling while trying to get the default thumbnail shown aligned to the left (text floating round right). Can you tell me where the change would need to be done (plug-in or theme?).