wordpress修复插件_如何修复WordPress帖子中出现两次的特色图片

wordpress修复插件

For regular WordPress users, creating a post in WordPress is a fairly easy process. However, for those just starting out, there are still things that they might find confusing.

对于普通的WordPress用户,在WordPress中创建帖子是一个相当简单的过程。 但是,对于刚起步的人来说,仍然有些事情可能会使他们感到困惑。

While the featured images functionality is a total life saver, it requires some basic understanding of WordPress to properly use it.

虽然特色图像功能可以节省生命,但它需要对WordPress有一些基本了解才能正确使用它。

Recently one of our readers reached out to us with a problem that their featured image was displaying twice. It is a fairly common image problem that can easily be solved. In this article, we will show you how to fix featured images appearing twice in WordPress posts.

最近,我们的一位读者向我们提出了一个问题,即他们的特色图片显示了两次。 这是一个很常见的图像问题,可以轻松解决。 在本文中,我们将向您展示如何修复在WordPress帖子中出现两次的特色图片。

Fixing WordPress featured image appearing twice
为什么“精选图片”在我的WordPress帖子中出现两次? (Why Featured Image is appearing Twice in my WordPress Posts?)

The most common reason for a featured image or post thumbnail to appear twice in WordPress posts is that sometimes beginners set a featured image and also insert it into the post content.

特色图片或帖子缩略图在WordPress帖子中出现两次的最常见原因是,有时初学者设置了特色图片并将其插入到帖子内容中。

Featured image appearing twice

This actually makes sense to most beginners because when they set a featured image, they expect it to appear in their content area. When it does not appear in the content editor, they feel that they may have missed something and end up inserting the same image again in the post.

实际上,这对于大多数初学者来说是有意义的,因为当他们设置特色图片时,他们希望它会出现在其内容区域中。 当它没有出现在内容编辑器中时,他们会觉得自己可能遗漏了一些东西,最终在帖子中再次插入了相同的图像。

This time they can see it in the block editor and feel satisfied. But when they publish the post, they notice that the image is appearing twice on their post.

这次他们可以在块编辑器中看到它并感到满意。 但是,当他们发布帖子时,他们注意到图像在帖子中出现了两次。

影片教学 (Video Tutorial)

演示地址

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

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

How to Fix this?

如何解决这个问题?

Just remove the image from the post editor and make sure you use the featured image box to set your featured image.

只需从帖子编辑器中删除图像,并确保使用特色图片框设置特色图片即可。

Avoid duplicate featured image

Featured images or post thumbnails are a WordPress theme feature. This means that the support for this feature is handled by your WordPress theme which is why you don’t see how it looks in your post editor.

特色图片或帖子缩略图是WordPress主题功能。 这意味着该功能的支持由WordPress主题处理,这就是为什么您在帖子编辑器中看不到它的外观的原因。

When you set a featured image for a post, the database communicates with your theme that there is a featured image that can be displayed automatically. This allows theme developers to use consistent styles for post thumbnails and featured images through out your website.

当您为帖子设置特色图像时, 数据库会与您的主题进行交流,即有一个特色图像可以自动显示。 这使主题开发人员可以在整个网站上使用一致的样式来发布缩略图和特色图像。

While this may fix the duplicate featured image issue for most users, you may also come across some other surprising issues. For example if you change the theme, then your featured images may look stretched, skewed, and disproportionate. To fix this you will need to regenerate image sizes in WordPress.

尽管这可以为大多数用户解决重复的特色图片问题,但您可能还会遇到其他一些令人惊讶的问题。 例如,如果您更改主题,则您的特色图像可能看起来被拉伸,歪斜和不成比例。 要解决此问题,您将需要在WordPress中重新生成图像大小

If the above solution does not help fix the problem of featured images appearing twice, then there is an issue with the underlying code of your theme. In this case, the best solution is to contact your theme developer for help.

如果上述解决方案不能解决特征图像出现两次的问题,则说明主题的基础代码存在问题。 在这种情况下,最好的解决方案是与主题开发人员联系以寻求帮助。

Check out the solution for other common image issues in WordPress.

在WordPress中查看其他常见图像问题的解决方案。

We hope this article helped you fix featured images appearing twice in your WordPress posts.

我们希望本文能帮助您修复在WordPress帖子中出现两次的特色图片。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/beginners-guide/how-to-fix-featured-images-appearing-twice-in-wordpress-posts/

wordpress修复插件

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值