Linux 软件免费装
Banner图

Freundschaft Default Featured Images

开发者 Freundschaft
更新时间 2026年1月21日 23:07
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPL-3.0-or-later
版权网址: 版权信息

标签

categories featured image thumbnail fallback

下载

1.0.0

详情介绍:

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.

安装:

  1. Upload the freundschaft-default-featured-images 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.

屏幕截图:

  • Category edit screen for per-category fallback and priority.

常见问题:

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.

更新日志:

1.0.0