[wordpress插件] Category Featured Images Extended类别特色图片扩展

wordpress 插件 文章 2020-03-18 09:20 491 0 全屏看文

AI助手支持GPT4.0

评分
88
描述

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.<

扩展的类别精选图像(CFIX)可以确保主题,模板和插件在调用帖子,类别存档页面,窗口小部件和网站的其他元素时始终显示缩略图或精选图像*。<

/p>

/ p>

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.

如果尚未为帖子设置特色/缩略图图像,则CFIX将首先尝试提供来自帖子类别或标签之一的图像。

It will use a Yoast SEO “Primary” Category’s image if available.

它将使用Yoast SEO“主要”类别的图片(如果有)。

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.

此插件最初基于Mattia Roccoberton的“类别特色图像” (CFI)。

If you already have been using CFI, when you install this extended version, your already saved category image settings will be preserved and copied.

如果您已经在使用CFI,则在安装此扩展版本时,将保存并复制已保存的类别图像设置。

In CFI

在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

    在CFIX中

      • (New since 1.2) You can also set tag images.

      • (从1.2开始新增)您还可以设置标签图像。

      • 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.

        如果有的话,将使用Yoast SEO主要类别的图片。

      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.

      作为进一步的预防措施,在确保CFIX可以正常工作之前,请勿完全卸载CFI。

      * 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.

      * WordPress中的“缩略图”和“功能性”一词在某种程度上可以互换使用,即使许多功能/缩略图图像的显示比缩略图大得多。

      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. 缩略图和特色图片后备广告:具有所有CFIX功能的插件,以及用于将其他图片(来自帖子内容或上传的图片)用于后备目的的选项。

        3. Supplementary Utilities: To handle thumbnail “false positives” (a problem for some imported or restored archives) or flush bad thumbnail data.
        4. 补充实用程序:处理缩略图“误报”(某些导入或还原的存档存在问题)或清除错误的缩略图数据。

        Check the CFIX home pages for additional background, examples,

        检查 CFIX主页以获取其他背景,示例,

        documentation, and usage tips… or to contact the developer directly

        文档和使用技巧…或直接与开发者联系

        a>.

        a>。

        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.

        感谢Mattia Roccoberton为其最初的Categorey Featured Images插件提供基本代码,在扩展该插件之前,我已经使用了多年。

        Thanks to John Prusinski for recommending the Yoast SEO modification, encouraging me to implement it, and even throwing in a tip via Paypal!

        感谢John Prusinski推荐Yoast SEO修改,鼓励我实施它,甚至通过Paypal提出建议!

        Thanks also to all of the developers and everyday code-hackers, far too numerous to name, upon whose work I have depended.

        也要感谢所有开发人员和日常代码黑客,我所依靠的工作实在太多了。

安装步骤

    1. Install and activate the plugin
    2. 安装并激活插件

    3. DE-ACTIVATE CATEGORY FEATURED IMAGES IF ACTIVATED
    4. 如果激活,则停用激活的类别特色图像

    5. Go to “Posts/Categories”
    6. 转到“帖子/类别”

    7. Edit a category
    8. 编辑类别

    9. Set the category featured image
    10. 设置类别特色图片

    11. Go to “Settings/Category Featured Images Extended” to set fallback options.
    12. 转到“扩展设置/类别特色图像”以设置后备选项。

下载地址
https://downloads.wordpress.org/plugin/category-featured-images-extended.zip
-EOF-

AI助手支持GPT4.0