WP Manifestindependent plugin directory
manifest / media / category-default-featured-image-plugin

Category Default Featured Image

Sets a default featured image for posts globally and per category with priority rules.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/freundschaft/category-default-featured-image-plugin/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Set a global default featured image and category-specific fallbacks with priority ordering.

Description

This plugin adds a global default featured image and allows each category to define its own fallback image. When a post has multiple categories, the highest priority category fallback wins. If no category fallback applies, the global fallback is used.

Installation

  1. Upload the category-default-featured-image folder to the /wp-content/plugins/ directory, or upload the zip via Plugins > Add New > Upload Plugin.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Set the global default image under Settings > Default Featured Image.
  4. Set category-specific fallbacks and priorities under Posts > Categories.

Frequently Asked Questions

How does priority work?

Each category has a numeric priority. Higher numbers take precedence. If priorities are equal, the category with the lowest term ID is used.

Can I use this for custom post types?

Yes. Use the cdfi_supported_post_types filter to add supported post types.

Screenshots

  1. Settings page for global fallback image.
  2. Category edit screen for per-category fallback and priority.

Changelog

1.0.0

  • Initial release.