隐藏wordpress后台_如何在WordPress中从首页隐藏帖子

本文介绍了如何在WordPress中隐藏帖子,使其不在主页、存档页面、搜索结果等处显示,同时允许通过直接链接访问。方法包括使用WordPress Hide Posts插件和手动添加代码隐藏。手动方法涉及在代码中添加条件标签,适用于隐藏页面、自定义帖子类型及从RSS源中排除内容。
摘要由CSDN通过智能技术生成

隐藏wordpress后台

Have you ever wanted to hide a blog post from your WordPress homepage or blog archive page?

您是否曾经想从WordPress主页或博客存档页面隐藏博客文章?

While you can make WordPress posts password protected or private, in some cases you may simply want to hide the post from your homepage while still allowing others to view it if they have the direct link.

虽然您可以将WordPress帖子设置为受密码保护或不公开,但在某些情况下,您可能只想隐藏主页中的帖子,同时如果其他人具有直接链接,则仍然允许他们查看它。

In this article, we will show you how to hide posts from selected pages in WordPress such as homepage, category archives, search results, and more.

在本文中,我们将向您展示如何隐藏WordPress中选定页面的帖子,例如首页,类别档案,搜索结果等。

Hide Posts from Home Page in WordPress
方法1.使用插件从主页隐藏WordPress帖子 (Method 1. Hide a WordPress Post from Homepage Using a Plugin)

This method is easier, and it is recommended for beginners.

此方法比较简单,建议初学者使用。

First thing you need to do is install and activate the WordPress Hide Posts plugin. For more details, see our step by step guide on how to install a WordPress plugin.

您需要做的第一件事是安装并激活WordPress隐藏帖子插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

Once the plugin is activated, go ahead and edit the post you want to hide. You will notice a new ‘Hide Posts’ section in the right column of the editor.

激活插件后,继续编辑您要隐藏的帖子。 您会在编辑器的右列中看到一个新的“隐藏帖子”部分。

Hide posts settings

Clicking on it will reveal plugin options. You can hide the post on the front page and blog page, category or tag pages, authors page, and site search results.

单击它会显示插件选项。 您可以在首页和博客页面,类别或标签页面,作者页面以及站点搜索结果中隐藏帖子。

Simply select the options you like and then save your post.

只需选择您喜欢的选项,然后保存您的帖子。

Depending on the options you selected, you can now visit those pages and that particular post will not be listed.

现在,根据您选择的选项,您可以访问这些页面,并且该特定帖子不会列出。

All users who have the direct post URL (permalink) can still see it by entering the URL.

具有直接发布URL( permalink )的所有用户仍然可以通过输入URL来查看它。

While this method is the easiest, it lacks several powerful options.

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值