Drag & Drop Featured Image

Description

Drag & Drop Featured Image is a plugin made to save you time when setting a featured image. What it does is simple, it replaces the default “Set featured image” metabox with a new one containing a Plupload drop area just like the one found in the media uploader.

Since it uses the default WordPress functions it will compress all sizes just as the regular upload method would and it also respects any custom image sizes.

In WordPress versions lower than 3.5 the page will reload after a successful image upload in order to show the new image. This has been fixed in more recent versions of WordPress, but cannot be implemented properly in older versions.

If you want to showcase testimonials on your website I highly recommend you to download the Testionials Widget plugin by Michael Cannon.

Translations:

  • English – Jonathan Lundström
  • Swedish – Jonathan Lundström
  • Spanish – Andrew Kurtis at WebHostingHub.

Translations are always more than welcome, and highly appreciated. If you are interested in helping me translate the plugin to your language, please contact me. You can use the tool Codestyling Localization in order to translate the plugin straight from your WordPress admin.

Screenshots

  • The metabox without image attached.
  • The metabox with an image attached.
  • Options panel to customize plugin settings.

Installation

To perform a manual install, do the following:

  1. Upload the ‘drag-and-featured’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Configure the plugin through the Options => Featured Image options panel

FAQ

How do I select an image from the Media Library?

To select an image from the Media Library, simple use the regular button above the content editor, or the one provided in the uploader. All methods have been rewritten to use the native implementations.

Which image file formats extensions are currently supported?

The current formats that are supported are JPG (JPEG), PNG and GIF

If I have some feature requests, where can I turn to?

If you have some ideas for new features or improvements I would love to hear about them. You can get in touch with me by sending me an email.

Reviews

useful for people with broken featured image

Thank you so much, now I can access my featured image again with my version 4.5.2 wordpress.
I don’t know why but it seem my themes broken the stock featured image in new post.
I hope people that have some problems as me can use this plug-in too.

Great plugin

Thanks. Such an increase to my productivity.
Occasionally it conflicts with other plugins, but otherwise works great.

Fantastic Addition

I do a lot of posting, and instead of killing bandwidth by viewing the library every time, I can simply drag the image to the new box to add it into the post. (I also set caching for images to 5 years so they don’t continually reload anyways.) Very highly recommended.

Read all 17 reviews

Contributors & Developers

“Drag & Drop Featured Image” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

2.0.4

  • Added spanish translation, courtesy of Andrew Kurtis at WebHostingHub.

2.0.2

  • Fixed PHP notice on line 128, sorry it took so long.
  • Fixed a minor styling issue in WordPress 3.8.
  • User capability should now apply properly again.
  • Minor code fixes.

2.0

  • Rewritten plugin from scratch using an object-oriented approach.
  • Brand new Media Manager hooks, image retrieved using the real API.
  • Fixed all AJAX issues that occured in WordPress >= 3.6.
  • All post types now show as long as show_ui is set to true.
  • Added option to publish / update the post after a successful image upload or select.
  • Fixes minor CSS and JavaScript issues, general code cleanup.
  • Renamed the option panel to simply say “Featured Image”.
  • Cleaned up the options page styling.

1.5.4

  • The uploader could sometimes get stuck the second time an image was uploaded. This behavior has now been fixed.
  • Options panel has now been moved to Settings
  • Added more options for localization, please help translate the plugin.
  • Removed option for file size, this is handled by php.ini.

1.5.2

  • Fixes an invalid media manager hook that conflicted with ACF.

1.5

  • Split the javascript and stylesheets for the uploader and the panel into separate files.
  • Changed the loading behavior of the scripts and stylesheets by changing hooks and checking the current page in order to reduce conflicts.
  • All javascript has been refined to remove compatibility issues with other plugins.
  • Re-coded the entire featured image mechanism to utilize ajax and mimic the original WordPress behavior. In other words, no more reloads! (WP3.5+)

1.4.8

  • Fixes another conflict with Advanced Custom Fields.

1.4.6

  • Fixes a mistake I made where some lines of code from 1.4.2 were removed. Compatibility with ACF has been resolved again in this version.

1.4.4

  • Fixes a potential conflict with other plugins that bind actions to the media uploader.

1.4.2

  • Changed PHP function to reformat names with uppercase characters from ‘mb_stroupper’ to ‘strtoupper’.
  • Fixed an issue that affected later versions of Advanced Custom Fields where the image field button would collide with the media selector button JS of this plugin.
  • Previously, dropping several files at once would cause them all to upload even though it was warning the user. This issue has now been fixed.

1.4

  • Added WordPress 3.5 compatibility with the new media viewer. Fixed minor issues and hopefully solved the dual file select bug. Please update asap if you run WordPress 3.5.

1.3.6

  • Added settings for plugin customizing control between user roles and capabilities.

1.3.5

  • Fixed Plugin URL in main plugin file. No changes made to the code.

1.3.4

  • Added a button in the uploader ares for quick access to the Media Library. Also changed the meta box priority from ‘high’ to ‘default’. Thanks to Michael Cannon for suggesting these fixes.

1.3.2

  • Fixes a bug where $post->ID was called at every page instead of the edit page. Thanks to kanakiyajay for reporting this issue.

1.3

  • This version adds support for choosing an image previously uploaded to the gallery or through the media library. It also includes support for localization. Due to restrictions, the page will reload when you choose an image from one of these locations.

1.2

  • This version fixes a critical bug preventing the pop-out menus to load as well as the visual editor to work properly. Many thanks to Adam for reporting this issue.

1.1

  • Updated and improved options panel.
  • The options panel is now called ‘D&D Featured Image’
  • Added option to set a custom filesize limit.
  • Removed BMP support as WordPress doesn’t support this format.
  • This version also fixes some minor text issues.

1.0

  • Initial release