隐藏wordpress后台_如何在WordPress中隐藏个别帖子上的特色图片

隐藏wordpress后台

Recently, one of our readers asked if it was possible to hide featured images on specific WordPress posts? There can be scenarios when you have a featured image for a post, but instead of removing it you may just want to hide it. In this article, we will show you how to hide featured images on individual posts in WordPress.

最近,我们的一位读者问是否可以在特定WordPress帖子上隐藏特色图片? 在某些情况下,如果您有帖子的精选图片,但您可能只想隐藏它,而不是删除它。 在本文中,我们将向您展示如何在WordPress的各个帖子中隐藏特色图片。

Hiding featured image for some posts in WordPress
为什么以及何时在WordPress中隐藏精选图片很有用? (Why and When Hiding Featured Images in WordPress is Useful?)

Featured image aka post thumbnail is a theme feature in WordPress. This means your WordPress theme controls the display of featured images on your website. See our guide on selecting the perfect theme for your WordPress site.

特色图片又称帖子缩略图是WordPress中的主题功能。 这意味着您的WordPress主题控制着网站上特色图片的显示。 请参阅有关为您的WordPress网站选择完美主题的指南。

Cleverly used featured images on List25

Some users may be using a theme that automatically uses the first post image as featured image if no featured image was specified. This means that it will still show a featured image even if you don’t set one.

如果未指定特色图片,则某些用户使用的主题可能会自动将第一个帖子图片用作特色图片 。 这意味着即使您没有设置,它仍将显示精选图像。

Some users may be a using a plugin to automatically set default featured image.

有些用户可能正在使用插件来自动设置默认的特色图片

There are many other cases when you may come across a situation where you will have to hide a featured image.

在许多其他情况下,您可能会遇到必须隐藏精选图像的情况。

Let’s see, how you can easily hide featured image from a WordPress post without writing any code.

让我们看看,如何无需编写任何代码即可轻松地从WordPress帖子中隐藏特色图片。

隐藏各个WordPress帖子中的精选图片 (Hiding Featured Image from Individual WordPress Posts)

To make it easy, we have created a video tutorial on how to hide featured images on individual posts that you can watch below.

为简单起见,我们创建了一个视频教程,介绍如何在各个帖子上隐藏特色图像,您可以在下面观看。

演示地址

However if you just want to follow text-instructions, then you can follow our step by step tutorial on how to how to hide featured images on individual posts in WordPress.

但是,如果您只想按照文本说明进行操作,则可以按照我们的分步教程进行操作,以了解如何在WordPress的各个帖子中隐藏特色图片。

First thing you need to do is install and activate the Hide Featured Image plugin. It works out of the box, and there are no settings for you to configure.

您需要做的第一件事是安装并激活“ 隐藏精选图像”插件。 它开箱即用,没有可供您配置的设置。

Simply edit the post where you want to hide the featured image. On the post edit screen, scroll down a little, and you will find the ‘Show/Hide Featured Image’ metabox.

只需在要隐藏特色图像的地方编辑帖子。 在帖子编辑屏幕上,向下滚动一点,您将找到“显示/隐藏精选图像”元框。

Hide featured image checkbox

You need to check the box next to ‘Hide Featured Image’ option. You can now save your post and preview it to see the plugin in action.

您需要选中“隐藏精选图片”选项旁边的框。 现在,您可以保存您的帖子并对其进行预览,以查看正在使用的插件。

Notice that even though we left the featured image set in our example, the plugin did it’s job of hiding it on the website. This plugin does not delete or unset the feature image, it just hides it on the front-end of your website. If you ever want to show the featured image again, simply edit the post and uncheck the hide featured image option.

请注意,即使我们在示例中保留了特色图片集,该插件也完成了将其隐藏在网站上的工作。 此插件不会删除或取消设置功能图片,而只是将其隐藏在您网站的前端。 如果您想再次显示特色图片,只需编辑帖子,然后取消选中隐藏特色图片选项即可。

The plugin also works with custom post types with featured image support.

该插件还可以与具有特色图像支持的自定义帖子类型一起使用。

We hope this article helped you learn how to hide featured image from individual posts in WordPress. You may also want to check out our list of 14 best featured image plugins and tutorials for WordPress.

我们希望本文能帮助您学习如何隐藏WordPress中各个帖子的特色图片。 您可能还需要查看我们的14个功能最强大的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/plugins/how-to-hide-featured-images-on-individual-posts-in-wordpress/

隐藏wordpress后台

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值