[wordpress插件] Category Thumbnail类别缩略图

wordpress 插件 文章 2020-04-17 13:41 569 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

[catthumb id=”CategoryID” link=”true”] will find the most recent post in the specified Category with a featured image and return the thumbnail for that image.

[catthumb id =” CategoryID” link =” true”]将在指定类别中找到带有特色图片的最新帖子,并返回该图片的缩略图。

If link=”true” is specified, the image will link to the category specified.

如果指定了 link =“ true” ,则图像将链接到指定的类别。

You can optionally search custom post types with the post_type attribute, and specify the thumbnail size with the size attribute.

您可以选择使用 post_type 属性搜索自定义帖子类型,并使用 size 属性指定缩略图大小。

IE [catthumb id="CategoryID" link="true" post_type="restaurants" size="full"]

IE [catthumb id =“ CategoryID” link =“ true” post_type =“ restaurants” size =“ full”]

The plugin will only search featured images, not attached images.

该插件将仅搜索精选图片,而不搜索附加图片

It will not look for images embedded in the post itself, or other attached images.

它不会查找帖子本身中嵌入的图像或其他附件图像。

If a category does not have any posts with featured images, this plugin will not return a thumbnail image, even if the category has posts with attached images.

如果某个类别中没有包含特色图片的帖子,则即使该类别中的帖子带有附加图片,此插件也不会返回缩略图。

安装步骤

    1. Upload dirtysuds-category-thumbnail to the /wp-content/plugins/ directory
    2. dirtysuds-category-thumbnail 上载到 / wp-content / plugins / 目录

    3. Activate DirtySuds – Category Thumbnail through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单

    5. 激活 DirtySuds –类别缩略图

    6. In the page editor, add the shortcode [catthumb id="CategoryID"] where CategoryID is category id number.

    7. 在页面编辑器中,添加简码 [catthumb id =“ CategoryID”] ,其中 CategoryID 是类别ID号。

      This must be a number, not the category slug or name

    8. 必须是数字,而不是类别slug或名称

下载地址
https://downloads.wordpress.org/plugin/dirtysuds-category-thumbnail.1.5.0.zip
-EOF-

AI助手支持GPT4.0