Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

zh-cn:文章 文章标签页面

文章 → 文章标签

WordPress 中的每篇文章都可贴上数个标签。标签可帮助将相似主题的文章组织在一起。


假设您在使用 WordPress Twenty Fifteen theme,标签会显示在每篇文章的下方。当访客点击标签的链接时,他将看到该标签下所有文章的存档页面。另外,若您使用了“标签云”小工具,这些标签也将被纳入到标签云中,依标签下文章的规模决定标签文字的大小,标签下文章越多,字号越大。





This Screen is divided into the Popular Tags, Add New Tag and Tag Table sections.


In this section, a Tag Cloud displays the forty-five (45) most popular Tags--meaning the Tags that are most used on posts. With the proper capability, each Tag can be clicked to edit that Tag. Of course, if no Tags have been assigned to posts, then this section will not appear.


This part of the Screen, which is conveniently linked to from the top of the Table of Tags, allows you to create a new Tag. There are three pieces of information associated with each new Tag: the name, description, slug, and number of posts containing that Tag.

Tag Name
To reiterate, the Tag Name must be unique.
Tag Slug
The Tag slug must be unique. The "slug" is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens. For example, setting a Tag Name of "Recipes" and a Tag Slug of "food" would show all "Recipes" posts with a URL like example.com/blog/food/.
A description for the Tag. Note: In many themes the Tag Description not displayed, however some themes may show it.
Add New Tag
Click this button to save your new Tag.


This table lists all of your Tags by row. Tags are displayed alphabetically by Tag Name.

The table of Tags contains the following columns:

  • [ ] - A checkbox that when clicked (checked), 'selects' that particular Tag to be deleted when the Delete Action is Applied.
  • Name - The name of the Tag. Remember each Name must be unique. Click on the Tag's Name to edit the Tag.
  • Description - The description of the Tag.
  • Slug – The slug of a Tag, and must be unique.
  • Posts - The number of posts which have this Tag assigned. Click on the number in the Posts column to be directed to the Posts Posts Screen to manage the Posts in that Tag.


The Screen Options allow you to choose which columns are displayed, or not displayed, in the underlying Table. Clicking on the Screen Options tab shows a list of the columns with a check-box next to each column. Check the box for each column you want displayed in the Table, or uncheck the box to not display that column. In addition, the number of Tags to display in the Table of Tags can be set. Click the Screen Options tab again to close the Screen Options.


Above the Table, to the right, is a search box where you can enter a word, or series of words, and click the "Search Tags" button to search and display all the Tags meeting your search words.



This section allows Actions to be performed on one or more Tags displayed in the Table. For Actions to be performed on multiple Tags at once, those Tags must be first selected via one of these methods:
  • Select one Tag at a time - To select a Tag, the checkbox to the left of the Tag entry must be checked (clicked). It is possible to keep selecting more Tags by checking their respective checkbox.
  • Select all Tags in given Table - All Tags in a given table can be selected by checking the checkbox in the Table's title, or footer bar. Of course, unchecking the header or footer title bar checkbox will cause all entries in that Table to be unchecked (NOT selected).
  • Reverse Selection - A Reverse Selection means checked items become unchecked, and unchecked items become checked. A Reverse Selection is accomplished by holding the Shift key on the keyboard and clicking the header or footer title bar checkbox.


Actions describe the process to be performed on particular Tags. There are two styles of Actions that will be referred to as Bulk Actions and Immediate Actions. The follow describes these Actions:
  • Bulk Actions - These Actions can be performed on one, or more Tags, at one time, if those Tags have been previously selected. Bulk Actions are available, when appropriate, as choices in the Actions pulldown box, above each Table. The only Bulk Action allowed is Delete.
  • Immediate Actions - Immediate Actions are performed immediately, on an individual Tag. Hovering the mouse cursor over the Tag row reveals the Edit, Quick Edit, and Delete options under the Name column in that Tag row. Clicking on a Tag Name will also initiate the Edit Action.
The available Actions are described below:
  • Edit - This Immediate Action displays the Edit Tag Screen to edit the Tag fields. This Action can be initiated by click on the Tag Name or clicking on the Edit option just below the Tag Name. See the Edit Tag section for details on editing a Tag.
  • Quick Edit - This Immediate Action initiates the Quick Edit of that Tag. See the Quick Edit section for details doing a Quick Edit on a Tag.
  • Delete - This Action deletes the Tags files. Delete is available only as a Bulk Action. Note: Deleting a Tag does not delete the posts in that Tag, but the posts that were assigned to the deleted Tag are assigned to the Default Tag, as defined in the Settings Writing Screen. Note that the Default Tag cannot be deleted.


After one or more Tags are selected, and after a Bulk Action is specified, the Apply button performs the given Action on the selected Tags.
  • Apply - Click the Apply button to execute the Bulk Action, specified in the Actions pulldown, on the selected Tags. Remember, prior to executing Actions, one or more Tags must be selected, as described before.


The following fields can be change via the Quick Edit Action:
Tag name
To reiterate, the Tag name must be unique.
Tag slug
Again, the Tag slug must be unique.
Click this button to cancel any changes and return to the Table of Tags
Update Tag
Once you've edited all the information about the Tag, use this button to save the changes.


This Screen only displays when you click on a Tags' Name in the Table of Tags. It is possible to edit four pieces of information associated with each Tag: the name, the slug, the parent, and the description.

Tag name
To reiterate, the Tag name must be unique.
Tag Slug
Again, the Tag slug must be unique.
Text describing this Tag.
Once you've changed the Tag information, use this button to save the changes.
See also Administration Screens and Network Admin.