Categories

Categories

You can use categories to define sections of your site and group related posts. The default category is Uncategorized but this can be easily changed in your Settings. Pages cannot be associated with Categories. You can only associate Categories to Posts.

There are two ways to add Categories. They can be added whilst adding or editing your Post or they can be added via the Categories menu option. Adding Categories whilst editing your Post, will automatically assign those Categories to your Post.

Adding Categories using the Categories menu option will simply add them to the list of available Categories.

When you click on the Categories menu option you’ll be shown a list of Categories that have already been added along with some blank fields that allow you to add a new Category.




To add a new Category, fill in the blank fields and then click the Add New Category button:
  • Name – The name is how it appears on your site
  • Slug – The Slug is the URL-friendly version of the name. It’s usually all lowercase and contains only letters, numbers, and hyphens
  • Parent – Categories, unlike tags, can have a hierarchy. You might have a Car category, and under that have children categories for Ford, General Motors and Toyota. Totally optional. To create a subcategory, just choose another category from the Parent dropdown
  • Description – The description is not prominent by default; however, some themes may display it
Once you add a new Category it will appear in the list of Categories on the right side of the screen.

When hovering your cursor over each row in the list of Categories, a few links will appear beneath the Category name.

  • Edit – Allows you to edit the Category properties such as Name, Slug, Parent and Description
  • Quick Edit – Allows you to quickly edit the Category Name and Slug
  • Delete – Deletes the Category permanently from the list of Categories. After clicking Delete you will be prompted to confirm your choice. Click OK to delete the Category or Cancel if you don’t want to delete it
  • View – This will list all the Posts that are currently using this Category 

If you would like to permanently delete numerous Categories at once, click the checkboxes next to the Categories you would like to delete and then choose Delete from the Bulk Actions dropdown list at the top of the page. After selecting Delete, click the Apply button to immediately delete the selected Categories (you will not be prompted to confirm your choice).

Deleting a Category does not delete the posts in that Category. Instead, posts that were only assigned to the deleted Category are set to the default Category, which is set to Uncategorized by default. The Default Post Category can be configured within the Settings > Writing section.
    • Related Articles

    • WordPress 删除类别

      在本章中,我们将研究如何在WordPress中删除类别。 以下是在WordPress中删除类别的简单步骤。 步骤(1) - 点击WordPress中的Posts → Categories。 步骤(2) - 您可以删除类别1(类别1是在 Wordpress - 添加类别一章中创建的)。 当光标悬停在类别上时,几个选项显示在类别名称下面。 点击Delete按钮,如下图所示。 当您单击删除时,您将收到一条要求确认删除特定类别的弹出消息,如以下屏幕截图所示。 您可以点击OK按钮并永久删除类别。
    • WordPress 分类安排

      在本章中,我们将研究如何在WordPress中排列类别。 您无法直接在WordPress中排列类别。 因此,您需要安装类别订单插件,以特定方式排列所创建的类别。 步骤(1) - 点击WordPress中的 Posts → Category Order 。 添加 Category Order 插件后,会显示 Category Order 菜单。 您可以在安装插件一章中了解如何安装插件。 步骤(2) - 在以下屏幕中,您可以看到创建类别部分不正常。 步骤(3) - ...
    • WordPress 发布帖子

      在本章中,我们将研究如何在WordPress中发布帖子。 发布用于使帖子对所有用户可用,其中每个用户可以查看该特定帖子。 在WordPress中发布新帖子是一个简单的过程。 以下是在WordPress中发布帖子的步骤。 步骤(1) - 点击WordPress中的Posts → Categories  步骤(2) - 您将获得帖子的编辑器页面,如以下屏幕截图所示。 您可以使用WordPress WYSIWYG编辑器添加您的帖子的实际内容。 步骤(3) - 点击Publish按钮以发布您的相关信息。 ...
    • WordPress 添加类别

      在本章中,我们将研究如何在WordPress中添加类别。 类别用于指示您网站的部分和组相关帖子。 它将组内容分为不同的部分。 这是一个非常方便的方式组织的职位。 要访问类别部分,请按照提到的步骤 - 步骤(1) - 点击WordPress中的Posts → Categories选项。 步骤(2) - 显示Categories页面,如以下屏幕截图所示。 以下是关于类别的字段的详细信息。 Name- 输入类别的唯一名称。 Slug - 选择用来描述您的讯息的字词。 它在标记URL中指定。 ...
    • Adding Categories within your Post

      Adding Categories whilst editing your Post will automatically assign those Categories to your Post.   When adding or editing your Post, the Categories panel can be found just below the Format panel if your Theme supports Post Formats. Alternatively, ...