Home  >  Article  >  CMS Tutorial  >  How to create a category directory in wordpress

How to create a category directory in wordpress

藏色散人
藏色散人Original
2019-07-15 10:01:353651browse

How to create a category directory in wordpress

How to create a category directory in wordpress

Before creating categories, it is best to clearly understand the direction of the website content , then list the preferred category names (usually use 2-6 words).

WordPress Category Directory

Log in to WordPress backend → Article → Category Directory

You can see the category creation and category management interface

How to create a category directory in wordpress

How to add a new category?

By default, there are 4 options for adding categories:

名称
别名
父级分类目录
描述

1) Name

The name of the category, usually 2-6 words

As shown in the following picture of "WeChat Marketing" in the WordPress category directory

How to create a category directory in wordpress

2) Alias ​​

is mainly used for URLs in the category directory .

https://www.chenweiliang.com/china-phone-number is the alias of the category directory "China Mobile Number".

(WordPress will automatically add /category to the URL by default in to distinguish it from the article category directory)

3) Parent category directory

The default is the first-level category, and sub-categories can also be created under the first-level category;

If you can also classify the content of the first-level category into more detailed parts, please consider adding a sub-category.

3) Description

Describe the content of this category, and some WordPress themes, Description will be called as the description of the category.

How to set the default category?

The main purpose of the default category is that if it is not specified manually when writing the article The category of the article will be automatically divided into the default category.

Log in to the WordPress backend → Settings → Write

to set the "default article category directory".

How to manage existing categories?

By placing the mouse on the category name, the management menu of the category directory will appear

Edit | Quick Edit | Delete | View

As shown below in the WordPress category "E-commerce"

How to create a category directory in wordpress

You can click to view it.

Please be sure to note that if a certain If a category is the "default category" and cannot be deleted, you can set other categories as the default category first, and then delete the category.

How to check the category ID?

Sometimes, for example, some WordPress theme setting options need to fill in the category ID to call the content of the category. At this time, you need to view the category ID

, put the mouse on the category name, and then right-click "Copy link address" ” to get the following link:

https: //域名/edit-tags.php?action=edit&taxonomy=category&tag_ID=1&post_type=post

where ID=1 is the ID of this category directory

For more WordPress technical articles, please visit the WordPress Tutorial column!

The above is the detailed content of How to create a category directory in wordpress. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn