9

在首页不显示某些分类的 WordPress 插件

 3 years ago
source link: https://blog.maolu.one/wordpress-plugin-which-can-hide-posts-in-specific-categories/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

在首页不显示某些分类的 WordPress 插件

一直想让 WordPress 担任微博的功能,记录一些简单的想法。这些简单的想法可能就是几句话,且对其他人价值不大,所以不太适合在首页出现。

我记得是可以通过修改 WordPress 的主循环函数来 exclude 某些分类的,但修改代码的方式每次升级主题就会丢失,所以找了一下相关的插件。Exclude Category from Blog 插件就能完美的实现不在首页显示某些分类。

在 Exclude from Blog Page 中选择不想在首页出现的分类,如果也不想该分类中的文章被搜索搜出,也可以同时勾选 Exclude from Search。

如果勾选 Main Query,则只会在首页不显示,在最近文章、最近回复等列表还是会显示,所以我不勾选此选项。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK