前言介紹
- 這款 WordPress 外掛「Category Featured Images Extended」是 2016-09-22 上架。
- 目前有 500 個安裝啟用數。
- 上一次更新是 2017-09-07,距離現在已有 2796 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.5.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 有 7 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
thumbnail | categories | CK MacLeod | featured image | category featured image |
內容簡介
Category Featured Images Extended (CFIX) 可以確保當佈景主題、模板和外掛程式呼叫文章、文章分類頁面、小工具或網站的其他元素時,它們總是會顯示縮略圖或特色圖片。
如果文章已經為特定文章設置了特色圖片,就會使用它。如果沒有為文章設置特色/縮略圖像,CFIX 將首先從文章的某個類別或標籤中提供圖像。如果可用,它將使用 Yoast SEO 「主要」類別圖像。如果找不到類別或標籤圖像,該外掛程式將尋找具有圖像的父類別。最後,如果找不到任何相關聯的文章、類別、標籤或父類別圖片,就可以使用一個特定的後備標籤或類別圖片,如果設置為「全域後備」,就可以使用它。
本外掛程式最初建立於 Mattia Roccoberton 的「Category Featured Images」(CFI)基礎上。如果您已經使用了 CFI,當您安裝這個擴展版本時,已經保存的分類圖像設置將被保留並複製。
在 CFI 中
如果文章沒有自己的特色圖像,將使用可用的分類特色圖像。
如果一個文章屬於多個有特色圖像的分類,將使用第一個可用的分類圖像。
如果文章中沒有分類有特色圖像,分類的父分類將使用特色圖像(如果有)。
在 CFIX 中
(1.2 版新增)您也可以設置標籤圖像。
您可以指定不使用圖像的分類或標籤:當許多文章使用相同的通用類別時,這個功能可能會有所幫助,您希望強制使用更具體的圖像。
您還可以指定類別或標籤,它們的圖像將作為最後的後備圖像使用,當沒有正常的特色圖像、類別圖像或父類別圖像可用時。這個功能可能特別有用,特別是如果您的安裝包含許多頂級類別,並且您希望為每個類別找到圖像,或者您還沒有這樣做。 (結合這個功能和上一個功能的一種方法是為避免和最後的後備都指定相同的類別:外掛程式將始終尋找更具體且不可避免的類別,但否則將退回到更一般的類別。)
當文章有多個類別或標籤圖像可用時,將使用最近添加的類別或標籤圖像。 (這種行為可以通過鉤子或過濾器進行修改。)如果可用,將使用 Yoast SEO 主要類別的圖像。
注意:如果從類別特色圖像升級,請停用它以避免衝突
為了進一步預防,請在您確定 CFIX 正常工作之前不要完全卸載 CFI。
*在 WordPress 中,「縮略圖」和「特色」這兩個詞用得有些混淆,即使許多特色/縮略圖像將以比縮略圖更大的尺寸顯示。
其他資訊
仍需更新的內容
縮略圖和特色圖像後備:具有所有 CFIX 功能以及使用其他圖像(從文章內容或上傳)作為後備用途的選項的外掛程式。
補充實用工具:處理縮略圖「錯誤正面診斷結果Positive False」(一些已導入或恢復的存檔的問題)或刷新不良縮略圖數據。
請查看CFIX首頁以獲得其他背景、示例、文件和使用技巧...或與作者聯繫以尋求幫助。
原文外掛簡介
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” (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
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.
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 for additional background, examples, documentation, and usage tips… or to contact the developer directly.
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.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Category Featured Images Extended」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
List category posts 》List Category Posts 可以讓你透過使用 [catlist] 短碼在文章或頁面中按類別列出文章。在編輯頁面或文章時,直接插入短碼到文章中,文章就會被列出來。基本的...。
Media Library Assistant 》媒體庫助手提供多個增強功能,方便管理媒體庫,其中包括:, , , , [mla_gallery] 短碼,在文章、頁面或自訂文章類型中使用,添加圖片和/或其他媒體庫項目(...。
WordPress Tag, Category, and Taxonomy Manager – AI Autotagger 》axoPress allows you to show a customizable display of the terms assigned to the current post. You can choose which taxonomy and which format to dis...。
Remove Category URL 》這個外掛可以徹底將 WordPress 網站的連結結構中的「/category/」去除(例如:從 mydomain.com/category/my-category/ 變成 mydomain.com/my-category/ )。,...。
Category Posts Widget 》Category Posts Widget是一個輕巧的小工具,設計用於一件事並且做得很好:顯示特定類別中最新的文章。, 基於詞語和類別的文章小工具, 這個免費小工具的高級版...。
Media Library Categories 》此外掛可允許在 WordPress 媒體庫中使用分類。啟用後,媒體庫中會顯示下拉式的分類清單。, 您可以使用大量動作進行多項目的分類更改、新增或移除分類。, 在使...。
Visual Term Description Editor 》此外掛會將分類說明編輯器替換成WordPress TinyMCE視覺編輯器,讓您可以在分類說明裡使用 HTML 並以豐富文字方式撰寫。此功能支援所有分類法,如標籤、分類、...。
Post Tags and Categories for Pages 》將文章標籤與分類套件套用於所有頁面,讓您可以使用 WordPress 原生的分類功能來分類您的頁面,並且會顯示在 WordPress 存檔查詢裡。, 這個外掛並不會自動顯...。
FV Top Level Categories 》這是針對 WordPress 3.1 及以上版本修復「Top Level Category」外掛程式的修正版。此外掛程式的目的是提供和原來程式相同的功能,但在新版本的 WordPress 上...。
Hide Categories and Products for Woocommerce 》這個外掛可以讓你隱藏選定的類別上的店鋪產品,並隱藏類別本身,無論是在列表還是單獨頁面中。, 它可以與 Storefront(主題)短代碼兼容。, 使用方式, , 前往...。
Flexible Posts Widget 》預設近期文章小工具非常簡單。我常常需要一個簡單的方法,能夠輕鬆地顯示任意文章類型或分類法的文章精選內容。這就是彈性文章小工具的由來。, 彈性文章小工...。
Essential Widgets 》Essential Widgets 是一款免費的 WordPress 插件,專門用於小工具,可以讓您在網站上創建和添加有趣的小工具,使其更具吸引力和親和力。Essential Widgets 忠...。
Category Tag Pages 》為您的頁面添加類別和標籤功能。, 此外掛會添加「post_tag」和「category」taxonomy (標籤和分類所使用的現有taxonomy名稱) 到「page」文章型別 (Post type) ...。
BulkPress 》在 WordPress 中加入多個分類可能非常麻煩。如果你想要為世界上每個國家添加分類,那麼填寫並提交新分類表單數百次就是一件非常糟糕的工作,尤其是當你添加具...。
Allow HTML in Category Descriptions 》當您在類別描述文本區添加文字並保存類別時,WordPress會運行內容過濾器,剝除除最基本格式標籤以外的所有內容。, 這個外掛程式可以禁用具有必要權限的角色的...。