{"id":11106233,"date":"2019-01-22T16:28:51","date_gmt":"2019-01-22T16:28:51","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&p=11106233"},"modified":"2024-06-08T18:30:42","modified_gmt":"2024-06-08T18:30:42","slug":"posts-categories-screen","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/posts-categories-screen\/","title":{"rendered":"Posts Categories screen"},"content":{"rendered":"\n

Each post in WordPress is filed under one or more Categories. This\naids in navigation and allows posts to be grouped with others of similar\n content.\n<\/p>\n\n\n\n

Each Category may be assigned to a Category Parent, allowing you\nto set up a hierarchy within the Category structure. In creating\nCategories, recognize that each Category Name must be unique. Thus,\neven if two Categories have two different Parents, they must still have\ndifferent names.\n<\/p>\n\n\n\n

\"categories-screen\"<\/a><\/figure>\n\n\n\n

Links to your Categories are, by default, shown in two different places on your blog’s home page if you are using the WordPress Twenty Seventeen theme<\/a>. First, WordPress lists these Category as links in your sidebar. Second, WordPress shows all the Categories to which a given post belongs under that post. When someone viewing your blog clicks on one of these Category links, an archive page with all the posts belonging to that Category will be displayed. <\/p>\n\n\n\n

This Screen allows you to create new Categories, edit or delete existing ones, and organize your Categories hierarchically. <\/p>\n\n\n\n

Categories Screen<\/h2>\n\n\n\n

This Screen is divided into the Add New Category and Category Table sections.\n<\/p>\n\n\n\n

Add New Category<\/h3>\n\n\n\n

This part of the Screen, which is conveniently linked to from the top of the Table of Categories, allows you to create a new Category. There are four pieces of information associated with each new Category: the name, slug, category parent, and description. <\/p>\n\n\n\n

Name:<\/strong> To reiterate, the Category Name must<\/em> be unique. <\/p>\n\n\n\n

Slug:<\/strong> The Category slug must<\/em> be unique. The Category Slug is used in the URL. For example, setting a Category Name of “Recipes” and a Category Slug of “food” would show all “Recipes” posts with a URL like example.com\/blog\/food\/<\/strong>. <\/p>\n\n\n\n

Parent:<\/strong> Use this drop-down if you want to make this Category a sub-Category; you will select the sub-Category’s Parent here. For example, you may have a Category called “Photos” but want to add further clarification about the subject of a particular “Photos” post. You could add “Oregon Coast” and “Ice Storm” as sub-Categories to the “Photos” Category; “Photos” would be the Parent of these two new sub-Categories. <\/p>\n\n\n\n

Sub-Categories show up on your blog’s page just like Categories, except they will typically be nested under their Parent Categories. When someone visits your site and clicks the “Photos” Category link, all posts in “Photos” and all its sub-Categories<\/em> will be displayed. Clicking the “Oregon Coast” Category link only<\/em> displays those post in that sub-Category. If you assign a post to a sub-Category (e.g. “Oregon Coast”), you can choose to assign that post to the sub-Category’s parent (“Photos”) or not. Either way, all “Oregon Coast” posts will show up in the “Photos” Category page. The only difference is that the list of Categories of which a particular post is actually a member. In the WordPress WordPress Twenty Seventeen theme<\/a>, this list is shown below the text of each post. Please note that when creating templates, you cannot match a child category based on the parent (ie: if category “bar” has parent “foo”, a template file named “category-foo.php” will not match any “bar” category posts.) <\/p>\n\n\n\n

Description: <\/strong> Category Descriptions are optional. Some themes take advantage of Category Descriptions, others do not, so having Descriptions may or may not modify the way Categories are displayed for your site. Even if they are not used by your site’s theme, you may still find them useful from an administration point of view.<\/p>\n\n\n\n

Add New Category<\/strong>: The most important part of the Add New Category box. Once you’ve entered in all the information about your new Category, use this button to save it. <\/p>\n\n\n\n

Table of Categories<\/h3>\n\n\n\n

This table lists all of your categories by row. Categories are\ndisplayed hierarchically and alphabetically; subcategories are\ndisplayed beneath their parents and are prefaced by long dashes. These\ndashed are not<\/em> part of a Category’s name; they are there only to show hierarchy.\n<\/p>\n\n\n\n

The table of categories contains the following columns:\n<\/p>\n\n\n\n