Articles of different themes are divided into different categories, helping visitors find the content they want and improving the user experience. Therefore, it is necessary to create article classification for your website. So how does WordPress create and manage article classifications? Today, Meng Meng will briefly introduce you.
Before creating a category, it is best to have a clearer understanding of the content orientation of your site and then list the preferred category name (typically 2-6 characters is appropriate).
Enter the background – articles – category directory, you can see the classification creation and classification management interface:
Add new category
Adding catalogs by default has 4 options:
- Name – The name of the category, which is generally 2-6 characters, as in the “WordPress Theme” above
- Aliases – Mainly used in URLs in catalogs, such as “themes” in “https://www.wpdaxue.com/category/themes” are aliases for “WordPress Themes” (WordPress by default automatically adds /category to URLs Categories)
- Parent – The level of classification, the default is first-level classification, you can also add sub-categories; if the content of the first-level classification can also be classified into more detailed sections, consider adding sub-categories
- Description – describes what this category is mainly about, and some WordPress themes will call this description as a description or classification description
Set default classification
The main use of the default classification is that if you do not manually specify the classification of an article when you write it, it will be automatically assigned to the default classification.
Go to Background – Settings – Write, you can set “Default Article Category”
Manage existing categories
By placing the mouse over the category name, you can manage the menu: Edit | Quick Edit | Delete | View (as shown in the “WordPress Development” above), you can click on the menu to see.
It should be noted that if a category is “default category” and cannot be deleted, you can first set other categories as the default category and then delete the category.
See Category ID
Sometimes, for example, some theme setting options, you need to fill in the classification ID in order to call the classification content, then you need to see the classification ID
Place the mouse over the category name and right-copy the link address to get the following link:
Http://xxxxxx/edit-tags.php?action=edit&taxonomy=category&tag_ID=4&post_type=post
Where ID=4 is the ID of this category
Well, the basic introduction to classification is here, if there is any problem you can leave a message.
Read other articles in this series:
WordPress Beginner Part1 — what is wordpress?
WordPress Beginner Part2 — What are the conditions for building a WordPress site?
WordPress Beginner Part3 — How to install WordPress
WordPress Beginner Part4 — WordPress basic settings
WordPress Beginner Part5 — Create and manage article categories
WordPress Beginner Part6 — Little-known background “small private”
WordPress Beginner Part7 — publishing new articles and article management
WordPress Beginner Part8 — New page and management page