wordpress远程附件

编程入门 行业动态 更新时间:2024-10-07 16:26:02

wordpress远程<a href=https://www.elefans.com/category/jswz/34/1768977.html style=附件"/>

wordpress远程附件

wordpress远程附件

Some WordPress themes work better with featured images or post thumbnails. Previously, we showed you how to set a default featured image in WordPress and how to set a fallback featured image based on post category. However, default fallback images can be too generic. Wouldn’t it be better if you could just use an image from a post itself as the featured image? In this article, we will show you how to use post attachments as featured image in WordPress.

一些WordPress主题与精选图片或发布缩略图效果更好。 之前,我们向您展示了如何在WordPress中设置默认的特色图片以及如何根据帖子类别设置后备特色图片 。 但是,默认后备图像可能太通用。 如果仅将帖子本身中的图像用作特色图像,会不会更好? 在本文中,我们将向您展示如何在WordPress中将帖子附件用作特色图片。

影片教学 (Video Tutorial)

演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

First thing you need to do is install and activate the Easy Add Thumbnail plugin. The plugin works out of the box and there are no settings for you to configure.

您需要做的第一件事是安装并激活Easy Add Thumbnail插件。 该插件可以直接使用,没有可供您配置的设置。

Easy add thumbnails sets featured image in two ways. First, when you publish a post it checks for a featured image. If it does not find one, then it looks for the first image attached to the post and sets it as featured image. Secondly, for your older posts it sets featured image when a post is viewed for the first time. At that time, the plugin looks for images attached to a post and uses the first image as the featured image.

轻松添加缩略图可通过两种方式设置特色图像。 首先,当您发布帖子时,它会检查特色图片。 如果找不到图片,则它将查找贴在帖子上的第一张图片,并将其设置为特色图片。 其次,对于较旧的帖子,它会在首次查看帖子时设置特色图片。 那时,该插件会查找附加到帖子的图像,并将第一个图像用作特色图像。

故障排除 (Troubleshooting)

Please note that the plugin will only use images uploaded and inserted to a particular post. For example if you insert an image from your media library, then the plugin will not be able to show it as featured image.

请注意,该插件将仅使用上传并插入到特定帖子中的图像。 例如,如果您从媒体库中插入图像,则该插件将无法将其显示为特色图像。

It will also not show any external images as featured images. This means you may want to import external images to your site.

它还不会将任何外部图像显示为特色图像。 这意味着您可能想将外部图像导入到您的站点。

In case you feel your featured images or post thumbnails are in wrong size, look too stretched or skewed, then you probably need to regenerate thumbnails to make sure that older images are available in image sizes used by your WordPress theme.

如果您觉得特色图片或帖子缩略图的尺寸不正确,看起来太拉伸或歪斜,则可能需要重新生成缩略图 ,以确保可以使用WordPress主题使用的图像尺寸的旧图像。

We hope this article helps you use post attachments as featured images in WordPress. In all honesty, it takes few extra seconds to manually set the featured image. If you can, then do that because it will save you the hassle of using yet another plugin.

我们希望本文能帮助您将帖子附件用作WordPress中的特色图片。 老实说,手动设置特色图片需要花费几秒钟的时间。 如果可以的话,请执行此操作,因为这将节省您使用其他插件的麻烦。

If you liked the article, then join us on Twitter and/or Google+.

如果您喜欢这篇文章,请通过Twitter和/或Google+加入我们。

翻译自: /

wordpress远程附件

更多推荐

wordpress远程附件

本文发布于:2024-03-06 16:34:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1715807.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:附件   wordpress

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!