Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Blogging & content · Explainer

What Are Categories in WordPress? Explained

What Are Categories in WordPress? Explained

Short answer

Categories in WordPress are a built-in way to group posts by broad topic. Every post belongs to at least one category, and each category gets its own archive page. Categories can have parent and child levels, unlike tags, which are flat optional keywords for specific details.

Key takeaways

  • Categories group posts by broad topic and are required for every post.
  • Uncategorized is the default category until you change it.
  • Categories can be hierarchical, while tags are flat.
  • Each category gets its own archive page and URL.
  • Pages do not use categories by default.
  • A small, focused set of categories works best for readers and SEO.

What are categories in WordPress?

Categories are WordPress's built-in way to group posts by broad topic, giving each group its own archive page and helping readers and search engines understand how your content is organized.

Think of categories as the sections of a newspaper or the chapters of a book. A cooking blog might use Breakfast, Dinner and Desserts, while a tech blog might use Reviews, News and Guides.

Every post belongs to at least one category. If you do not choose one, WordPress assigns the default category, which is Uncategorized on a fresh install.

Categories are one of two built-in taxonomies for posts. The other is tags, which we compare below.

How do categories work behind the scenes?

A category is a term in the built-in category taxonomy, and WordPress links posts to terms so it can list, filter and display posts by category.

A taxonomy is simply a way of grouping things. WordPress ships with categories and tags, and developers can add their own.

The theme developer handbook on categories, tags and custom taxonomies explains how these pieces fit together.

Each category has a name, a slug used in URLs, an optional parent and an optional description. These are stored in the database and reused across every post that uses the category.

What makes categories different from tags?

Categories are hierarchical broad topics that every post must have, while tags are flat, optional keywords that describe specific details of a post.

FeatureCategoriesTags
PurposeBroad topics and site sectionsSpecific details and keywords
HierarchyCan have parent and child categoriesFlat, no hierarchy
RequiredAt least one per postOptional
DefaultUncategorizedNone
Typical number per postOne or twoSeveral
Archive URL/category/slug/ by default/tag/slug/ by default

A recipe post might sit in the Dinner category and carry tags like chicken, 30 minutes and gluten free.

Our full comparison of categories vs tags in WordPress goes through when to use each.

What are parent and child categories?

Child categories sit under a parent to create subtopics, such as Europe and Asia under a Travel category, so large sites can organize content in levels.

You set a parent when creating or editing a category. Posts in a child category also appear in that child's own archive.

Whether a post in a child category shows on the parent's archive depends on your theme and query settings. Many themes include child category posts on the parent archive.

Keep hierarchies shallow. Two levels are usually enough for readers to find their way around.

Where do you manage categories?

You manage categories under Posts, then Categories, where you can add, edit, delete and set parents, or add them on the fly from the post editor's sidebar.

The Posts Categories screen documentation explains each field and column on that page.

In the post editor, open the post settings sidebar and find the Categories panel. Tick existing categories or click to add a new one.

Our step-by-step guide on how to add categories in WordPress walks through both methods.

What is the default category?

The default category is the one WordPress assigns to posts with no category chosen; it starts as Uncategorized, and you can rename it or pick a different default.

Change the default under Settings, then Writing. The Writing settings documentation describes that option.

You cannot delete whichever category is currently the default. Pick a new default first, then delete the old one if needed.

Renaming Uncategorized to something useful, such as General or Blog, is a quick improvement for most new sites.

Do pages and products use categories?

Pages do not use categories by default, and WooCommerce products use their own separate product categories rather than the post categories.

Pages are meant for standalone content such as About and Contact. Their structure comes from parent pages and menus instead.

WooCommerce adds a product category taxonomy that works the same way but is kept apart from blog categories. Our guide to editing the WooCommerce product category page covers the store side.

Plugins and themes can also add categories to custom post types, such as portfolio projects or events.

How do category archive pages work?

Each category automatically gets an archive page listing its posts, at an address such as /category/recipes/, which themes can style with special templates.

You can change the category part of that URL under Settings, then Permalinks, using the category base field. Our explainer on what a permalink is covers URL settings in general.

Themes control how archives look. The WordPress template hierarchy explains which template file or block template WordPress uses for each category.

Some themes show the category description at the top of its archive. Writing a short description helps readers and gives the page unique text.

Do categories help SEO?

Categories help SEO indirectly by giving your site a clear structure and useful archive pages, but too many thin or overlapping categories can do more harm than good.

Search engines use internal links and site structure to understand which topics you cover. Google's SEO starter guide recommends organizing content in a way that makes sense to visitors.

A focused set of categories, each with a good number of posts, creates archive pages worth visiting.

Our guide on handling category and tag pages for SEO covers indexing, descriptions and duplicate content.

How many categories should a site have?

Most blogs work well with somewhere between five and fifteen main categories, with each post in one or two of them.

There is no fixed rule. The right number depends on how many distinct topics you cover and how many posts you publish.

If a category has only one or two posts after several months, merge it into a broader one. If a category grows huge and covers many subtopics, split it with child categories.

Assigning a post to many categories creates overlapping archives. One main category per post keeps things clean.

How do developers use categories?

Developers use functions like get_the_category() to show a post's categories, category conditionals to change layouts, and custom taxonomies when categories do not fit the content.

The get_the_category() reference shows how to retrieve category data for a post.

Query blocks in block themes can filter by category without code. That makes it easy to show posts from one category on a landing page.

If you need to clean up later, see how to remove categories in WordPress.

When moving content between sites, you can also import categories in bulk.

For a guided introduction to organizing content, the free lessons at Learn WordPress cover categories, tags and menus with video walkthroughs.

Frequently asked questions

What is the purpose of categories in WordPress?

Categories group posts into broad topics so readers can browse related content and search engines can understand your site's structure. Each category has its own archive page, and themes often show categories in menus, sidebars and post meta.

Can a WordPress post have no category?

No. Every post must have at least one category. If you do not pick one, WordPress assigns the default category, which is Uncategorized on new sites. You can change the default under Settings, then Writing.

Can a post be in more than one category?

Yes. You can tick several categories for one post, and it will appear in each of their archives. Most sites keep it to one or two, since many categories per post creates overlapping archive pages that add little value.

Why can't I delete the Uncategorized category?

WordPress does not let you delete the current default category. Choose a different default under Settings, then Writing, and you can then delete Uncategorized. Alternatively, rename it to something more useful, such as General.

Should I use categories or tags?

Use both for different jobs. Categories are for a short list of broad topics that structure your site. Tags are optional and describe specific details within a post. Most blogs need categories, while tags are useful but not required.

Sources

  1. Categories, Tags, and Custom Taxonomies WordPress Developer Resources
  2. Posts Categories Screen WordPress.org Documentation
  3. Settings Writing Screen WordPress.org Documentation
  4. Template Hierarchy WordPress Developer Resources
  5. get_the_category() WordPress Developer Resources
  6. SEO Starter Guide Google Search Central

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.