Magic Post Thumbnail


Automatically generate thumbnails for your posts !

Retrieve first image from Google Images, Flickr or Pixabay thanks to API, based on your post title and add picture as your featured thumbnail when you publish the post.
Settings allow you to configure some settings for your automatics images : Image bank, language search, posts types chosen, image type, free-to-use or not, image size and much more.

You can :

  • Generate thumbnail for one post ( or page, custom post type… )
  • Generate thumbnails massively for chosen posts
  • Generate automatically thumbnails : Compatible with WPeMatico, CyberSyn, Rss Post Importer, FeedWordPress & WP All Import

Upgrade your plugin to Pro Version ! You will get more more options to configure, more image banks, and customisable crons.

Official Website


  • ஆங்கிலம்
  • French

Todo list

Magic post thumbnail is improving progressively. Feel free to post on the forum or email me to give your suggestion or warn about a bug.

  • More translations (you can help)

Support the plugin

If you’ve found the plugin useful, please consider making a donation. You can also visit my Amazon Wishlist. Thank you for your support !


  • A Thumbnail generated by Magic post Thumbnail
  • Magic post Thumbnail : Settings
  • Magic post Thumbnail : Image Banks
  • Magic post Thumbnail : Cron
  • Magic post Thumbnail : Mass Generate


  1. Activate the plugin
  2. Go to Settings > Magic Post Thumbnail
  3. Configure your settings, which post type you want to enable it and the image bank.
  4. Go into a post or create one, choose “Plugin enabled for this post” on the sidebar. Update/Create the post and your thumbnail is generated as featured image !
  5. You can also mass generate thumbnails for posts. Go into the list of your posts, choose posts you want to get thumbnails and into “Bulk Actions” choose “Generate Magic Post thumbnail”

If you want to use the Google Image API method : From now on to use the Google Images API, it’s required to provide your own Google Search engine ID and API Key. Follow these steps :

  • Go to the Google API Console > Credentials > Create credentials > API key, copy your new key into the plugin preferences ( Google API Key field ). Then go to Library > Custom Search API > Enable.
  • Go to Custom Search page. Create a new search engine. Then edit the search engine and get the search engine ID. Copy/paste it into the plugin preferences ( Custom Search Engine ID field ).
  • Enjoy !

The “How to do” for APIs activations is available here.


ஆவணி 1, 2019
We needed to change the featured images for 100's of posts that already had featured images. Wow! Wow! This plugin works like a champ and saved many hours of time if we had to do this process manually. Used this plugin to regenerate new featured images automatically. Just go to the posts page and check the posts you need to regenerate featured images for and watch it work the magic. We used Google Images (scrape) and all's good. Nice work! Highly recommended plugin.
மார்கழி 12, 2016
The Plugin works for me. I hope for optimice in feature 🙂
கார்த்திகை 29, 2016
The plugin is amazing!! Helps save lots of time. Google images API works great and scraping too! I've tried Flickr's api and that worked without any issues Even Pixabay did its job! if someone wants to use all the sources then It would be cool to have an option like that but no complaints!!
கார்த்திகை 18, 2016
What good fortune finding this plugin. Pulling in RSS feeds as posts, this plugin solves the missing featured image problem. Of the various import methods, Google Images scrape is the most consistent, as title keywords won't often turn up hits at Pixabay or Flickr, especially if your trying to respect copyright 🙂 Google API method was a dead end for me. Sure, I understand the Google Dev console and have many many projects and associated APIs. But creating a Google Custom Search Engine, then getting an API too; which api? Any. Will a YouTube, Google Cloud, Google Maps API work? They did not in my tests. The author needs to ferret out and better explain how a user is supposed to meet those criterias.
புரட்டாதி 3, 2016
A great free plugin! Quickly and reliably fetches images at post update & publish. I found it's possible to get good relevant results with careful domain selection within your google custom search engine, plus selection of larger image size. Definitely worth the time to tweak to get the best results. Thank you!
Read all 13 reviews

Contributors & Developers

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


Translate “Magic Post Thumbnail” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



* Add "Based on" with custom field for pro version
* Domains restriction with Google scraping for pro version
* Bulk generation link fixed
* Fix when no category & post types are chosen


* Fix skip button with Freemius
* Update Freemius version


* Change some translations
* Settings : Add a filter according categories. Exactly like post types
* Change default_options_banks_settings() parameter. Always set to true


* Load wp-load.php insteand of wp-blog-header.php and change the way to include it.
* Avoid title filter with get_post_field() insteand of get_the_title()


* Add Freemius service
* Fix bug with variable not defined into MPT_add_settings_link()
* Avoid js errors : Add images folder into jquery-ui` folder
* Avoid error with empty image extension. Set to .jpg when image extension is not defined.
* Change method to include wp-blog-header.php


* Fix bug with CyberSyn


* Fix small bug. Separate condition get_post_type() and has_post_thumbnail()


* Change settings page
* Add crons, new images banks and new settings for the pro version


* Compatible with plugin WP All Import


* Fix error with google scraping method


* Fix JS Error with tabs
* Add Google Image Scraping Method : Google API is complicated to generate Google Search engine ID and API Key.


* Remove error with Google API Key.


* Remove fatal error


* Updates with Google API. Google API ID/key to provide.


* Fix pixabay API lock. API Username/key to provide.
* Now compatible with autoblog plugins CyberSyn, Rss Post Importer & FeedWordPress


* Add Flickr & Pixabay API
* Improve checking image file type
* Possibility to select a part of the title
* Remove some bugs while scraping


* Bug fix for non-latin image filename


* No more CURL or allow_url_fopen used. Replaced by WP function wp_remote_request() : More secure and compatible
* Images better scrapped
* Image filename renamed by post title instead of original scrapped filename
* Compatible with the cron WPeMatico plugin
* More options into Search Preferences menu
* Some security improvements
* Remove some bugs while scraping


* Add the link plugin on the wordpress plugins page.
* Add "Domain Path" and "Text Domain"
* Remove an useless function "add_post_meta" when saving a post


* Solution has been found to get back Google Image with Google API
* Generation phrases have changed color
* Work with now with CURL or allow_url_fopen


* Plugin doesn't support anymore Google Image. Replace by free to use


* Add option "Generate Magic Post Thumbnail" for Custom Post Type


* Enable mass generation with servers that block some kind of ajax calls.
* Add error message when there is no image on Google, and don't create a blank image.
* Action 'edit_post' changed to 'save_post' for compatibility when publishing a new post


* Generation didn't work anymore with some selected countries in the list. Fixed.
* Choice to generate thumbnail or not regardless for each post
* Mass generation of post thumbnails with Action "Generate Magic Post thumbnail"


* Add "tbm=isch" at the end of the scraping Google URL. Otherwise it doesn't work any more.


* Error Message on settings with allow_url_fopen OFF
* Less empty image generated


* First release
* Automatically generates featured images