General
Using Categories and Tags in WordPress
Categories and tags give your WordPress posts an organizational structure, so visitors can browse content by topic instead of only by date. Both apply to blog posts only, not pages. Where they appear depends on your theme; in the default Twenty Twenty theme, for example, categories show above the post title and tags below the post content.
Many plugins that add their own content types, such as events, courses, or products, include separate categories and tags that work the same way.
Categories vs. tags
Categories are broad and structural; tags are specific and descriptive. Think of your site as a book: categories are the table of contents, and tags are the index.
| Feature | Categories | Tags |
|---|---|---|
| Purpose | Broad groupings by topic (for example, News or Products) | Specific keywords that describe a post in detail (for example, rockets or reviews) |
| Hierarchy | Can be nested into parent and child categories | Flat, with no hierarchy |
| Required | Yes; every post has at least one (defaults to Uncategorized) | No |
| Dashboard location | Posts > Categories | Posts > Tags |
Categories
Use categories for the broad topics your site covers. When you write a post, think about its wider topic: if you expect to write more posts on it, a category groups them together.
Add or assign a category in the post editor
- Open the post in the editor.
- In the settings sidebar, select the Post tab (labeled Document in older WordPress versions) and expand Categories.
- To assign an existing category, check the box next to it. A post can belong to more than one category, but one or two keeps your structure clear.
- To create a category, click Add New Category, enter a name, optionally choose a Parent Category, and click Add New Category again. The new category appears in the list.
The Uncategorized default
If you publish without choosing a category, WordPress assigns the post to Uncategorized. That label doesn’t help visitors, so always pick or create a relevant category. You can rename Uncategorized in Posts > Categories or choose a different default under Settings > Writing.
Category settings
- Slug: the URL-friendly version of the name, usually all lowercase with only letters, numbers, and hyphens. WordPress creates one from the name if you leave it blank.
- Parent category: unlike tags, categories can be nested. For example, a Jazz category could have Bebop and Big Band as child categories, or Shirts could have T-Shirts. Posts in a child category also appear in the parent category’s archive.
- Description: extra detail about the posts in the category. Some themes display it on the category archive page.
Tags
Use tags for the specific keywords a post covers. They help visitors find related posts across your site, even when those posts sit in different categories.
Add tags in the post editor
- In the settings sidebar, expand Tags.
- Type a keyword and press Enter or type a comma to add it. For example, a post about rocket-powered skates might use the tag “rockets.”
- Repeat for each tag. Existing tags are suggested as you type, which helps you avoid near-duplicates.
Manage categories from the dashboard
Go to Posts > Categories to see every category in one place. The form on the left adds new categories, and the list on the right shows existing ones.
- Add: enter a name, plus an optional slug, parent category, and description, then click Add New Category.
- Edit: hover over a category and click Edit to change any field, or Quick Edit to change only the name and slug.
- Delete: hover over a category and click Delete. Its posts aren’t deleted; any post left without a category moves to the default category, which itself can’t be deleted.
Manage tags from the dashboard
Go to Posts > Tags to add, edit, and delete tags outside the editor. The layout matches the Categories screen.
- Add: enter a name, plus an optional slug and description, then click Add New Tag.
- Find: use the search box above the list to locate a specific tag quickly.
- Edit: hover over a tag and click Edit or Quick Edit.
- Delete in bulk: check the tags, choose Delete from Bulk actions, and click Apply. The tags are removed from their posts, but the posts aren’t deleted.
Best practices
Clear, consistent categories and tags make related content easier to find and support your site’s usability and SEO.
- Assign a meaningful category and relevant tags before you publish each post.
- Keep each post in one or two focused categories rather than many.
- Build categories around topics you expect to write about again, and use tags for the specifics.
- Reuse existing tags instead of creating near-duplicates, such as “review” and “reviews.”