Easy Add Thumbnail

Description

NOTE: This plugin functionality is guaranteed by more than 10,000 active installs. But before install this plugin bear in mind that its only purpose is to ADD the feature image ID to your post (in the same way that you would do using WP editor), it does not remove ANYTHING after deactivation.
Before asking for support please read FAQ and this support thread

How it works?

Checks if the post (any post type with thumbnail support, including pages) has already a featured image associated, and if not sets it using one of the following methods:

  1. Dinamically, for old published posts, the featured images are set only when needed to show them in the frontend. This means that the featured image is set (only first time) when a visitor loads the page where it needs to be shown.

  2. For new content, the featured image is set in the publishing process.

No options page to setup, simply install and activate.

If you want to exclude certain post type (e.g. pages), you can do it by using a filter. See FAQ for more details.

Easy Add Thumbnail don’t add any plugin data to your WordPress database. It simply adds the _thumbnail_id meta key with the ID of the attachment to be used as feature image (just the same that WordPress does when you set it manually).

Therefore it requires to have attached/uploaded at least one image to the post. If there’s not any image attached to the post, this plugin can’t help you.

Easy Add Thumbnail has not any control over how/when/where your featured image is displayed in your site, the display of the featured image in your site is TOTALLY controlled by your theme, this includes size, position, display it or not…

Requirements

  • WordPress 3.7 or higher.

Installation

  • Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation (or install it directly from your dashboard) and then activate the Plugin from Plugins page.

IMPORTANT! Remember that your theme must support the use of thumbnails, if not, the thumbnail information will be set in the database but you’ll not see them in your site.

FAQ

Can I use this plugin for setting featured image using some image not attached to the post?

No. This plugin uses only standard WordPress functions to set the featured image. And using this standard (and friendly) method WordPress simply has not any knowing about images not attached to the post.

How can I check if a post has “attached” images?

In that post edit screen, click the “Add Media button”, then click to “Media Library” tab, and select “Uploaded to this post” in the dropdown, you must see at least one image. If you see the “No items found.” message, that means that your images were not uploaded within that post. And therefore, the plugin can’t use any image to set as feature image.

If you can see images when selecting “Uploaded to this post” but the plugin is not using it for feature image. You need to try for theme/plugins conflicting. Try using a WordPress default theme (i.e. Twenty Fifteen) and disabling all other plugins.

My theme is showing big images instead of thumbnail sizes, what happens?

As stated above this plugin uses standard WordPress method to set the featured image, this does not include any size information. The size used by your theme for displaying image thumbnails depends totally on how your theme was coded.

Contact to your theme author for support if you’re having this problem.

You can find more information about how to properly show thumbnails in your theme on codex reference for the_post_thumbnail (check ‘Thumbnail Sizes’ section) and set_post_thumbnail_size functions.

How can I exclude pages or other post types ?

If you don’t want to use Easy Add Thumbnail for your pages or any other post type, you can exclude them by simply adding a little snippet of code to your theme functions.php file before enabling the plugin.
The following example will exclude pages:

add_filter ('eat_exclude_types', 'my_excluded_types', 10, 1);
function my_excluded_types ( $exclude_types ){
    $exclude_types[] = 'page'; 
    return $exclude_types;
}

If you want to exclude a custom post type you need to know the value of ‘name’ used in register_post_type() function for registering that post type.
e.g. If you have a custom post type and its ‘name’ is ‘book’ the you’ll use:

add_filter ('eat_exclude_types', 'my_excluded_types', 10, 1);
function my_excluded_types ( $exclude_types ){
    $exclude_types[] = 'book'; 
    return $exclude_types;
}

If you want to exclude more than one post type just duplicate the $exclude_types[] line for each one.

This snippet must be added to your site BEFORE enabling Easy Add Thumbnail in your site,
if you add it later it will stop assigning the thumbnails for new posts in the excluded types after that moment, previous posts will not be modified.

Is the post thumbnail and featured image the same?

Yes. When I released first version of this plugin years ago, featured images was named as post thumbnails, but later WordPress team decided to change the name to “featured image”.

In fact, WordPress core functions for featured image, still uses original thumbnail names.

That’s because the plugin name (that can’t be changed in the Extend directory without having issues) says “thumbnail”.

Will this plugin works in WordPress older than 3.7?

WordPress installs below 3.7 are not supported. But you can use Easy Add Thumbnail 1.0.2 if you use WordPress 2.9 or higher

Reviews

Works at 50%

Well, it works but sometimes… And sometimes the “first” image of the article is not set as the featured image… I saw that it does not work when the “first” image in the post has been resized… maybe!!

Is not working properly

Not need any option but not working too. I tried like instruction and visit a few posts on frontend for test. There is not appear featured images. Also i’ve checked from post editing pages but images not append or copy or another to featured image are. Sorry, i can’t use it.

It just works

This plugin has worked reliably for me every time I’ve used it. Does what it says on the label.

A very intelligent solution to a vexing problem

I really appreciate the manner in which this author approached this problem. It is an intelligent solution that works really well.

I found the author’s explanation of the plugin somewhat incomplete, and since I am a technical writer, perhaps I can assist in the description of this excellent plugin. This plugin causes an Archive view to take the first image it encounters in a post and use it as if it were a featured image. The actual Featured Image for the post does not get defined permanently (which, if you use your imagination, is actually quite freeing in some situations). After activating this plugin, if you go into a given post for which you see a featured image displayed in the Archive view , but for which you never manually defined a featured image (that’s important, if an image is already set this plugin moves on to the next post), you will see that post actually still does not have a featured image set. Using LoopBuddy or other plugins that allow you to quickly define complex grid or other multi-record displays will not recognize what this plugin is doing and will not display anything for a featured image because, again, none is ever actually set by this plugin.

If you’ve got posts that are going to be displayed in an Archive layout of some kind, and they don’t have Featured Images actually defined for each of them you should consider installing and testing this very easy to use plugin. It could move you forward in your content migrations significantly…especially if migrating to a new design that makes use of Featured Images in archive views but the client has all these posts with no FI defined. Great work!!

Read all 32 reviews

Contributors & Developers

“Easy Add Thumbnail” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1.1

  • Added ‘eat_exclude_types’ filter to allow excluding post types from the process
  • Minor code cleanup and more comments added

1.1

  • Changed plugin code to be WordPres 3.7 or higher compatible. So now WordPress 3.7 or higher is required and older WordPress versions are not supported.
  • Cleanup some code not needed after raising min. required version to 3.7

1.0.2

  • When updating the readme.txt I copied by error another plugin readme to trunk, causing the plugin closed by WordPress.org staff. This release is only to fix the mistake made with readme as requested by WordPress.org staff. Sorry!!

1.0.1

  • Hooks added to set the thumbnail when publishing too.

1.0

  • Initial release.