Title: Category Featured Images Extended
Author: CK MacLeod
Published: <strong>23, Setiembre de 2016</strong>
Last modified: 7, Setiembre de 2017

---

Guetar plugins

![](https://ps.w.org/category-featured-images-extended/assets/banner-772x250.jpg?
rev=1501367)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/category-featured-images-extended/assets/icon-256x256.jpg?rev
=1501367)

# Category Featured Images Extended

 By [CK MacLeod](https://profiles.wordpress.org/ck-macleod/)

[Download](https://downloads.wordpress.org/plugin/category-featured-images-extended.zip)

 * [Details](https://ast.wordpress.org/plugins/category-featured-images-extended/#description)
 * [Reviews](https://ast.wordpress.org/plugins/category-featured-images-extended/#reviews)
 *  [Installation](https://ast.wordpress.org/plugins/category-featured-images-extended/#installation)
 * [Development](https://ast.wordpress.org/plugins/category-featured-images-extended/#developers)

 [Support](https://wordpress.org/support/plugin/category-featured-images-extended/)

## Description

Category Featured Images Extended (CFIX) can ensure that posts, category archive
pages, widgets and other elements of your site will always display a thumbnail or
featured image* when called upon to do so by themes, templates, and plugins.

If a featured image has been individually set for a post, it will be used. If a 
featured/thumbnail image has not been set for a post, CFIX will first try to supply
an image from one of the post’s categories or tags. It will use a Yoast SEO “Primary”
Category’s image if available. If no category or tag image is found, the plugin 
will look for a parent category with an image. Finally, if no linked or related 
post, category, tag, or parent category image is found, a particular fallback tag
or category image can be used if set as “global fallback.”

This plugin was initially based on [“Category Featured Images”](https://wordpress.org/plugins/category-featured-images/)(
CFI) by Mattia Roccoberton. If you already have been using CFI, when you install
this extended version, your already saved category image settings will be preserved
and copied.

In CFI

 * If a post does not have its own featured image, a category featured image will
   be used if available.
 * If a post has more than one category with a featured image, the first available
   category image will be used.
 * If none of the post’s categories has a featured image, a parent category’s featured
   image will be used if available.

In CFIX

 * (New since 1.2) You can also set tag images.
 * You can designate categories or tags whose images will be avoided: This feature
   may be helpful when numerous posts use the same general category, and you wish
   to force the use of a more specific image.
 * You can also designate a category or tag whose image will be used as a last fallback
   when no regular featured image, category image, or parent category image is available.
   This feature may be helpful especially if your installation features many top-
   level categories, and you either do not wish to find images for each and every
   one, or you just haven’t done so yet. (One way to combine this feature and the
   previous one would be to designate the same category for _both_ avoidance and
   last resort: The plug-in would always look for a more specific, not-to-be-avoided
   category, but fall back to the more general category otherwise.)
 * When a post has multiple category or tag images available, either the most recently
   added category or tag will be used. (This behavior is modifiable via hook or 
   filter). A Yoast SEO Primary Category’s image will be used if available.

NOTE: _IF UPGRADING FROM CATEGORY FEATURED IMAGES, DE-ACTIVATE IT TO AVOID CONFLICTS_

As a further precaution, do not uninstall CFI completely until you are sure that
CFIX is working as expected for you.

* The terms “thumbnail” and “featured” are used somewhat interchangeably in WordPress,
even though many featured/thumbnail images will be displayed at much larger than
thumbnail size.

### Additional Info

#### Still to Come

 1. Thumbnail and Featured Image Fallback: A plugin with all CFIX capabilities as well
    as options to use other images (from post content or as uploaded) for fallback 
    purposes.
 2. Supplementary Utilities: To handle thumbnail “false positives” (a problem for some
    imported or restored archives) or flush bad thumbnail data.

Check the [CFIX home pages](http://ckmacleod.com/wordpress-plugins/category-featured-images-extended/)
for additional background, examples, documentation, and usage tips… or to [contact the developer directly](http://ckmacleod.com/wordpress-plugins/category-featured-images-extended/get-support/).

#### Thanks!

All gratitude to Mattia Roccoberton for the basic code for his original Categorey
Featured Images plug-in, which I had been using for years before I got around to
extending it. Thanks to John Prusinski for recommending the Yoast SEO modification,
encouraging me to implement it, and even throwing in a tip via Paypal! Thanks also
to all of the developers and everyday code-hackers, far too numerous to name, upon
whose work I have depended.

## Screenshots

[⌊Settings Page⌉⌊Settings Page⌉[

Settings Page

[⌊Edit Category Page⌉⌊Edit Category Page⌉[

Edit Category Page

[⌊Posts Archive Before CFIX⌉⌊Posts Archive Before CFIX⌉[

Posts Archive Before CFIX

[⌊Posts Archive After CFIX⌉⌊Posts Archive After CFIX⌉[

Posts Archive After CFIX

## Installation

 1. Install and activate the plugin
 2. DE-ACTIVATE CATEGORY FEATURED IMAGES IF ACTIVATED
 3. Go to “Posts/Categories”
 4. Edit a category
 5. Set the category featured image
 6. Go to “Settings/Category Featured Images Extended” to set fallback options.

## FAQ

  Installation Instructions

 1. Install and activate the plugin
 2. DE-ACTIVATE CATEGORY FEATURED IMAGES IF ACTIVATED
 3. Go to “Posts/Categories”
 4. Edit a category
 5. Set the category featured image
 6. Go to “Settings/Category Featured Images Extended” to set fallback options.

  1. Why Aren’t My Fallback Images Showing Up on a Few/Some/All Posts?

Assuming that you’ve cleared any caches that might be affecting display, and that
you’ve properly added the relevant category images, one possibility is that your
post data (“Post Metadata”) was corrupted or incompletely inserted during a restore,
import, or other operation, and that WordPress wrongly thinks that your posts have
thumbnail or featured images when they don’t really. Many relatively well-tested,
widely and even very widely in use WordPress plug-ins and functions will produce
this “thumbnail false positive” behavior.

CFIX has been written to provide a thumbnail image even in such cases, but please
[contact the developer](http://ckmacleod.com/wordpress-plugins/category-featured-images-extended/support/)
if you encounter such an outcome, as the plug-in is still new, and use cases are
still being assembled. For instructions on Flushing Bad Thumbnail Data see [CFIX Advanced Topics](http://ckmacleod.com/wordpress-plugins/category-featured-images-extended/advanced/).

  2. Is CFIX causing a performance hit at my site?

CFIX WILL add some overhead, especially if your layout features large numbers of
posts calling for thumbnails or featured images that have not been set, requiring
the plug-in to work overtime to find fallbacks. Slowed page loads should be mitigated
with proper use of good caching applications – which you ought to be using in any
event, especially if utilizing image-rich multi-post displays, and depending on 
the plug-in to provide a large number of substitute images.

## Reviews

![](https://secure.gravatar.com/avatar/9b14251613e2a9bad6f1ac8c637e08e383d2173334197902e0e16a337fddef15?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-4340/)󠁿

 [puzzlella](https://profiles.wordpress.org/puzzlella/) 5, Xunu de 2018

An EXCELLENT plugin that you would normally expect to have a fee for. Great work,
great support. Makes it easy to add featured images by category or by tag, so your
site looks professional with just a few steps. Nice.

![](https://secure.gravatar.com/avatar/6882cef33ac3a27de91e008fe247657a86e892a3a51261fb04952597ad658400?
s=60&d=retro&r=g)

### 󠀁[THANK YOU!](https://wordpress.org/support/topic/thank-you-1335/)󠁿

 [GratefulDeb](https://profiles.wordpress.org/eventermom/) 12, Mayu de 2017 1 reply

Working on a project that has hero images and this is EXACTLY what I was looking
for to implement a featured image on a category and it's posts. Save me SO MUCH 
TIME!

![](https://secure.gravatar.com/avatar/7384a686717249cd1a6faaa208dc97191698fd39809ca4fde86f558521eaf36c?
s=60&d=retro&r=g)

### 󠀁[Good stuff, great support](https://wordpress.org/support/topic/good-stuff-great-support/)󠁿

 [goodyis](https://profiles.wordpress.org/goodyis/) 13, Abril de 2017

Super helpful when you have a lot of posts that have no featured image and you need
them quick to fix the look and feel of your theme – especially if theme has photo
focus. Plugin does what is expected; support was helpful even when the problem I
had, had nothing to do with the plugin – but rather my theme/setup. Knowledgeable
creator; un-bloated code.

![](https://secure.gravatar.com/avatar/6ccf7ec03f2af9814f608419b1528f17ad909aae7cdbe9444b2928ea39f60cbf?
s=60&d=retro&r=g)

### 󠀁[Good Plugin, Even Better Support.](https://wordpress.org/support/topic/good-plugin-even-better-support/)󠁿

 [michent1](https://profiles.wordpress.org/michent1/) 19, Avientu de 2016

After posting a minor php error notification in the support foums (that did not 
affect installation or functionality) plugin developer responded immediately & issued
an update with a patch in 24 hrs. That's the kind of attentiveness I look for in
a developer when choosing plugin integrations for the sites I build. Great job!

![](https://secure.gravatar.com/avatar/9f582619b4f474cba59b06f1598e288405a8cbb1aa8784c1791c1673d3465660?
s=60&d=retro&r=g)

### 󠀁[Unable to install : Error](https://wordpress.org/support/topic/unable-to-install-error/)󠁿

 [wptechnology](https://profiles.wordpress.org/wptechnology/) 4, Avientu de 2016
2 replies

Unable to install the plugin, getting this error : Fatal error: Can't use function
return value in write context in /wp-content/plugins/category-featured-images-extended/
category-featured-images-extended.php on line 730

![](https://secure.gravatar.com/avatar/df3e46b908c0f183fa3206c362366b4240b156f363750538e9d5f673af38751c?
s=60&d=retro&r=g)

### 󠀁[Great !](https://wordpress.org/support/topic/great-924/)󠁿

 [uktar](https://profiles.wordpress.org/uktar/) 14, Ochobre de 2016

Exactly what I was looking for and the developer is reactive ! Great work !

 [ Read all 7 reviews ](https://wordpress.org/support/plugin/category-featured-images-extended/reviews/)

## Contributors & Developers

“Category Featured Images Extended” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ CK MacLeod ](https://profiles.wordpress.org/ck-macleod/)

[Translate “Category Featured Images Extended” into your language.](https://translate.wordpress.org/projects/wp-plugins/category-featured-images-extended)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/category-featured-images-extended/),
check out the [SVN repository](https://plugins.svn.wordpress.org/category-featured-images-extended/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/category-featured-images-extended/)
by [RSS](https://plugins.trac.wordpress.org/log/category-featured-images-extended/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.52

 * Include ‘wp-admin/includes/plugin.php’ so that function tag does not produce 
   error – thanks to Emiliano Costanzo!

#### 1.51

 * Fixed parameter transposition error in category-featured-images-extended.php 
   affecting excluded categories vs. Yoast Primary Category
 * Fixed offset non-definition throwing PHP Notice

#### 1.5

 * Option to use Yoast SEO Primary category for image if available. Streamlined.

#### 1.4

 * Special transitional version (use Yoast SEO if present)

#### 1.34

 * Avoid PHP Warnings for illegal offset when no global fallback category has been
   set – now tests whether value has been set.

#### 1.33

 * Corrected syntax to avoid “function return value in write context” errors in 
   deprecated (pre-5.5) versions of PHP.

#### 1.32

 * Added variable definition to prevent pesky undefined warning on activation in
   some installations; fixed js script localization

#### 1.31

 * Removed problematic “thumbnail false positive” detection for restoration as future
   option.

#### 1.3

 * Tags options
 * Performance-related enhancements

#### 1.2.1

 * Sort order correction.

#### 1.2

 * Fixes serious bug created in 1.1 – so somewhat critical upgrade if already upgraded
   to 1.1

#### 1.1

 * Exclusion/Parent Category fallback corrections; avoid “has thumbnail” false positives.

#### 1.0.1

 * Maintenance: Typos, Uninstall Error, Admin Footer

#### 1.0

 * First Version in WordPress Repo

## Meta

 *  Version **1.52**
 *  Last updated **9 años ago**
 *  Active installations **400+**
 *  WordPress version ** 3.5.0 or higher **
 *  Tested up to **4.8.34**
 *  PHP version ** 5.6 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/category-featured-images-extended/)
 * Tags
 * [categories](https://ast.wordpress.org/plugins/tags/categories/)[featured image](https://ast.wordpress.org/plugins/tags/featured-image/)
   [thumbnail](https://ast.wordpress.org/plugins/tags/thumbnail/)
 *  [Advanced View](https://ast.wordpress.org/plugins/category-featured-images-extended/advanced/)

## Ratings

 4.4 out of 5 stars.

 *  [  6 5-star reviews     ](https://wordpress.org/support/plugin/category-featured-images-extended/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/category-featured-images-extended/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/category-featured-images-extended/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/category-featured-images-extended/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/category-featured-images-extended/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/category-featured-images-extended/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/category-featured-images-extended/reviews/)

## Contributors

 *   [ CK MacLeod ](https://profiles.wordpress.org/ck-macleod/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/category-featured-images-extended/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://ckmacleod.com/wordpress-plugins/#donate)