FPW Category Thumbnails


Setting featured images for posts / pages could be very time
consuming, especially when your media library holds hundreds of
pictures. Very often we select the same thumbnail for posts in
particular category. This plugin automates the process by inserting a
thumbnail based on category / thumbnail mapping while post / page is
being created or updated. Now bundled with FPW Post Thumbnails.

سکرین شاٹاں

  • FPW Category Thumbnails – Settings – JavaScript on
  • FPW Category Thumbnails – Settings – JavaScript off
  • FPW Post Thumbnails – Settings – JavaScript on
  • FPW Post Thumbnails – Settings – JavaScript off

انسٹال کرݨ

  1. Upload fpw-category-thumbnails folder to the /wp-content/plugins/ directory
  2. If standalone plugin FPW Post Thumbnails is installed deactivate and remove it.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Select Dashboard’s Appearance -> FPW Category Thumbnails and build category/thumbnail mapping

ہرہک دے سوال

I got an ID for the image and assigned it to the category, and the plugin does not display it in posts.

The plugin does not display thumbnails by itself. This is your theme’s role.

I’ve entered ID of a picture from NextGen Gallery and thumbnail doesn’t show.

IDs from NextGen Gallery must be entered with ngg- prefix, so ID 230 should be entered as ngg-230.

What is required to use authors’ pictures as thumbnails?

Upload authors’ pictures into media library or NextGen gallery.
File names of authors’ pictures in media library must follow this naming convention: ‘autor_id.jpg’ where ‘id’ is author’s user id.
File names of authors’ pictures in NextGen gallery must follow this naming convention: ‘id.jpg’ where ‘id’ is author’s user id.
The name of NextGen gallery must be ‘authors’.

How to use ‘fpwCategoryThumbnails::addThumbnailToPost’ method?

Look into Public method fpwCategoryThumbnails::addThumbnailToPost topic of Documentation.

Will both plugins work with JavaScript turned off?

Yes. Both plugins are functional with JavaScript turned off to comply with accessibility regulations.


جولائی 10, 2023
Works like a charm, just install and run! Unfortunately there are other older non-working plugins that comes before this when you’re searching, but this is it, it works without any issues..
ستمبر 15, 2016
Just to say that you save me hours of work! Thank you!
سارے 6 ریویو پڑھو

Contributors & Developers

“FPW Category Thumbnails” is open source software. The following people have contributed to this plugin.

حصہ پاوݨ آلے

“FPW Category Thumbnails” has been translated into 1 locale. Thank you to the translators for their contributions.

“FPW Category Thumbnails&#8221 دا آپݨی زبان وچ ترجمہ کرو۔

ڈیویلپمنٹ وچ دلچسپی ہے؟

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

تبدیلی لاگ


  • Tested up to 6.5


  • Added options to control insertion of category thumbnal column to list of categories / posts
  • Updated plugin’s help screen


  • Added category thumbnal column to list of posts


  • Minor code fixes


  • Removed code for old translation methods


  • PHP 8 compatibility
  • FPW Post Thumbnails – Fixed: AJAX forms submition


  • FPW Post Thumbnails – Fixed: Incorrect display sizes of .svg images


  • Added: Requires PHP: 5.6.20
  • Fixed: Incorrect preview sizes of .svg images


  • Added: Requires PHP: 5.2.4
  • Fixed: Requires at least: 3.4
  • Fixed: Replaced deprecated get_currentuserinfo() with wp_get_current_user()


  • Fixed: uninitialized map option


  • Fixed: corrected path to images for alerts


  • Changes in update info message


  • Changes in language pack loader
  • Minor CSS changes


  • Full compatibility with language packs
  • New post meta to store post thumbnails for multiple categories


  • Removed code for PHP 4 compatibility


  • Fixed “Do not overwrite if post / page has thumbnail assigned already” flag not respected on new posts


  • Added no javascript form submission handler


  • Removed some options
  • Added backup and restore thumbnails removed by Remove Thumbnails action
  • Modified help to reflect recent changes


  • Fixed few security vulnerabilities
  • Added new format of admin page title introduced in WP 4.3


  • FPW Post Thumbnails: fixed deprecated form of load_plugin_textdomain function


  • FPW Post Thumbnails: added shadow support for bordered thumbnails


  • FPW Category Thumbnails: transfered hiding current theme’s thumbnails from FPW Post Thumbnails to improve performance
  • FPW Post Thumbnails: transfered hiding current theme’s thumbnails to FPW Category Thumbnails to improve performance
  • FPW Post Thumbnails: removed ‘Get Language File’ button as FPW Category Thumbnails handles it for both plugins ( maintenance release )

  • FIXED: FPW Post Thumbnails not hiding theme’s thumbnails if both Content thumbnails enabled and Excerpt thumbnails enabled were off
  • FIXED: FPW Post Thumbnails dynamic CSS style did not set rounded corners correctly


  • FPW Category Thumbnails: Adds theme support for thumbnails if not provided by the current theme already
  • FPW Post Thumbnails: Added visibility control for current theme’s thumbnails
  • Changed help files for both plugins


  • CSS improvements


  • Fixed translation plurals
  • Added plugin icon


  • FPW Category Thumbnails and FPW Post Thumbnails: fixed version check not working when major versions changes


  • FPW Category Thumbnails: fixed Get Image ID malformed dialog since WordPress 3.8 for all flavours of NextGen Gallery


  • FPW Category Thumbnails: images compatible with Media Library, NextGEN Gallery up to 1.9.13, NextCellent Gallery, and NextGEN Gallery by Photocrati
  • FPW Category Thumbnails: optimized images display to rescale only when necessary
  • FPW Post Thumbnails: optimized images display to rescale only when necessary
  • FPW Post Thumbnails: standarized ‘alt’ and ‘title’ attributes of thumbnails
  • FPW Post Thumbnails: changed contextual help
  • text domain changed for compatibility with language packs and automated updates


  • FPW Category Thumbnails: modified contextual help
  • FPW Post Thumbnails: removed ‘hide-if-no-js’ class from both ‘Copy’ buttons
  • FPW Post Thumbnails: modified contextual help


  • FPW Category Thumbnails: added “Thumbnail” column to Posts -> Categories admin screen
  • FPW Category Thumbnails: fixed bug in JavaScript detection handler
  • FPW Post Thumbnails: added JavaScript detection handler
  • Removing plugins’ data from database on uninstallation handled independently from each other


  • Removed built-in front end stylesheet and added dynamic CSS instead ( FPW Post Thumbnails )


  • Added choice of base dimension for image scaling ( FPW Post Thumbnails )
  • Removed built-in stylesheet for preview and added dynamic CSS instead ( FPW Post Thumbnails )


  • Fixed mapping not being applied when post/page is created/updated in user context ( eg. xmlrpc )


  • Added option to enable / disable built-in FPW Post Thumbnails


  • Added check to prevent activation if standalone version of FPW Post Thumbnails plugin is installed and active


  • Dropped support for WordPress versions lower than 3.3
  • Bundled with FPW Post Thumbnails plugin
  • Moved to Appearance menu of the Dashboard
  • Loading JavaScript into the footer


  • Major release
  • Dropped support for WordPress versions lower than 3.1
  • Uses WP_List_Table descendant to display category / thumbnail mapping
  • Full AJAX implementation of all operations
  • Ensured proper operation when JavaScript is disabled
  • Support for downloading of translation files from plugin’s repository


  • Last version supporting WordPress versions from 2.9 and lower than 3.1
  • Added code to prevent plugin being activated when WordPress version is lower than 2.9
  • Exposed method ‘fpwCategoryThumbnails::addThumbnailToPost’ for both back and front end
  • Minor code modifications


  • Added support for pointers ( WP 3.3+ )
  • Minor bugs fixes


  • Fixed issues with PHP notices about uninitialized $_POST index
  • Fixed external links to plugin’s website ( changed permalinks at fw2s.com )


  • New feature: authors’ pictures as thumbnails
  • Updated .pot file for translations


  • Added missing strings for translations
  • Fixed loading of text domain for translations
  • Included Polish translation


  • Change to make it 100% predictable which thumbnail will be used in case of multiple categories selection


  • Optimized code to use less resources


  • Changed support links to reflect changes to FWSS site


  • Prevents adding thumbnails to drafts
  • Adding actions and filters to back end only


  • Maintenance release
  • Recoded using classes to prevent naming conflicts


  • Optimized for WordPress 3.3
  • Code cleanup


  • New option ( width of ‘Image ID’ column )
  • New ability to AJAX-ed refresh of ‘Preview’ column after manual insertion of ID
  • Added missing text for Help screens
  • Various code modifications


  • Code improvements
  • Full localization of javascripts
  • WordPress 3.3 ready


  • Minified javascripts
  • Fixed problem of loading scripts on all admin pages


  • Added confirmation dialogs for bulk actions


  • Improved code for bulk actions to reduce memory use
  • Modified media-upload to simplify image ID extraction
  • Added option to show / hide dashboard widget
  • Added AJAX preview of thumbnails on settings screen


  • Added FPW Plugins to admin bar for WordPress 3.1+


  • Fixed problem with extraction of image id from NextGEN library


  • Fixed problem with javascripts conflicts
  • Added a button to clear assigned image id


  • Major release
  • Added support for media upload
  • Code cleanup


  • Changed code to properly recognize location of installation core files
  • Security related changes
  • Visual enhancements to Settings page


  • Minor code improvements. Extensive tests on WP 3.1.1


  • Fixed a bug ( new posts only ) causing default category thumbnail being set instead of the one of selected category when do not overwrite flag is on


  • Added checks to avoid operations on post revisions


  • Added plugin’s dashboard info widget


  • Changed minimum role required to manage settings
  • Moved table of available images to contextual help


  • Combined default contextual help content and plugin’s contextual help content
  • Updated translations


  • Moved Description and Instructions blocks to contextual help


  • Added table of available images


  • Added plugin activation action to apply proper extension to uninstall( .txt/ .php) file based on option setting in database


  • Plugin code optimization
  • Minor fixes


  • Added: update information line to plugin’s meta block which shows only when update is detected


  • Added: immediate action to apply all mappings to existing posts/pages
  • Added: immediate action to unconditionally remove thumbnails from existing posts/pages


  • Changed: changed from thumbnails to category names mapping to thumbnails to category ids mapping
  • Changed: category listing shows category names and ids reflecting hierarchy of categories


  • Added: change name of uninstall file based on cleanup flag


  • Added: option to prevent overwriting if post/page has thumbnail allready
  • Updated: translations


  • Added: link to Settings into plugin’s action links
  • Added: database cleanup on uninstall
  • Updated: translations


  • Added: check if current theme supports post thumbnails
  • Updated: translations


  • Initial release