天天看点

如何为WordPress页面添加类别和标签

Categories and tags help you sort your content and make it easier for users to find what they are looking for. When creating a WordPress post both categories and tags can come in very handy for organizing your content. In past we have covered how to use Categories vs Tags. By default both categories and tags are only limited to posts, so when you create a new page in WordPress, you will notice that there is no option to add categories or tags to your WordPress page. Recently one of our readers asked us if there was a way to have categories and tags work with both post and pages. Like we always say, there’s a plugin for that. In this article we will show you how to add post tags and categories for WordPress pages.

类别和标签可帮助您对内容进行排序,并使用户更容易找到所需内容。 创建WordPress帖子时,类别和标签都可以非常方便地组织内容。 过去我们介绍了如何使用Categories vs Tags 。 默认情况下,类别和标签都只限于帖子,因此在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 Post Tags and Categories for Pages plugin. Once activated, go to Pages » Add New and you will find post categories and tags now available for your pages too. That’s it. No complex setup. This plugin just works out of the box.

您需要做的第一件事是安装并激活“ 页面的标签和类别”插件。 激活后,转到页面»添加新内容 ,您还将发现现在也可用于您的页面的帖子类别和标签。 而已。 无需复杂的设置。 该插件可以直接使用。

如何为WordPress页面添加类别和标签

What this plugin does is that it modifies the default categories and tag taxonomies and associate them with Page post type along with the default posts. Lets say you have a category called “books” that you use to sort your posts. Using this plugin, you can easily add a page and file it in the same Books category, so your page will appear in the category archive along with your regular posts.

该插件的作用是修改默认类别并标记分类法,并将其与Page帖子类型以及默认帖子相关联。 假设您有一个名为“书籍”的类别,可用于对帖子进行排序。 使用此插件,您可以轻松添加页面并将其归档在同一“图书”类别中,因此您的页面将与常规帖子一起显示在类别存档中。

We hope this article helped you add post categories and tags to your WordPress pages. Do you use categories and tags with pages? If so, then let us know how you are using them by commenting below.

我们希望本文能帮助您将帖子类别和标签添加到WordPress页面。 您是否在页面上使用类别和标签? 如果是这样,请通过下面的评论让我们知道您的使用方式。

翻译自: https://www.wpbeginner.com/plugins/how-to-add-categories-and-tags-for-wordpress-pages/