On this page
WordPress's own writing guide gives each one a line. A category is "the general topic of the post," and tags are "micro-categories for the post, similar to including index entries for a page." Learn WordPress explains it with a library: categories are the sections, such as fiction and nonfiction, and tags are labels like "dinosaurs" that turn up on books in every section.
Categories vs tags at a glance
| Categories | Tags | |
|---|---|---|
| Required | Yes. A post saved without one goes into the default category, Uncategorized until you rename it | No |
| Structure | Hierarchical: a category can have child categories | Flat: no parents or children |
| What it describes | The post's main subject, the section it belongs to | Specific details that cut across sections |
| How many on a site | A short, stable list | Grows with the site; keep the ones posts share |
| How many per post | One, where possible | A few |
| Archive URL | /category/slug/ by default | /tag/slug/ by default |
| Can appear in the post URL | Yes, through the %category% permalink tag |
No |
How each one becomes a page
Every category and every tag you create is also a URL. Click a category link and WordPress shows "an archive page with all the posts belonging to that Category"; a tag link does the same for its tag. Subcategories add a twist: the parent's archive lists the posts in all its children too, so a post filed under "Mammals" also appears on the "Animals" page.
The prefixes in those URLs are settings. Under Settings, then Permalinks, you can rename the category base and the tag base, whose defaults are "category" and "tag", but the WordPress documentation notes that "you can't remove them from the URLs altogether."
That is why taxonomy is an SEO decision and not only a filing one. A blog that adds four new tags with every post soon has more tag archives than posts, and each one is a page for search engines to crawl and judge, usually listing excerpts that also appear somewhere else.
What categories and tags do for SEO
Category archives can earn a place in search. An archive that gathers twenty posts on one subject, with a short introduction on top, works as a content hub: one page that frames the subject and links to everything the site has on it. Some sites go a step further and give the subject a hand-written pillar page instead.
Tag archives rarely do. Ahrefs' WordPress SEO guide is direct: "You should only allow Google to index pages that offer value to searchers. Tag pages and format-based archives rarely fall into this category, so it's generally best practice to exclude them from indexing." A tag used once produces a page with one excerpt. A tag that repeats a category, such as a "Recipes" tag on every post in the "Recipes" category, produces two archives listing the same posts, the archive version of duplicate content.
Both help with links. Term links on a post point at archives, and archives link back to their posts, so a categorized post always has at least one page linking to it. That keeps new posts from becoming orphan pages. Archive links do not replace links written into related posts, though, which carry the context internal linking depends on.
How many categories and tags to use
Categories: a short, stable list. WordPress's writing guide says "It is typical for a blog to have 7-10 categories for content." A young blog can start with fewer. Each category should be a section a reader would browse and that you will keep feeding; one that still holds two posts after a year probably belongs inside another. Learn WordPress advises filing each post under "only one category whenever possible," which keeps the archives distinct from each other.
Tags: only the ones posts share. Learn WordPress again: "it's better to have a limited number of well utilized tags, rather than hundreds of rarely used ones," and no tag should have "a synonymous counterpart on your site." A workable rule is to create a tag only when at least three posts will carry it, and to give each post a handful rather than a dozen. If no tag would ever reach three posts, the site may not need tags at all. Our walkthrough on writing a blog entry in WordPress covers choosing them as part of publishing.
Tidy up before it sprawls. Deleting a category never deletes its posts, but WordPress files any post left without a category under the default one, so move posts to their new category first. A deleted term's archive URL stops working, so redirect any that had links or traffic.
Should the category be in the post URL?
WordPress can put it there. The %category% permalink tag adds the category slug to every post URL, with subcategories as nested folders. The cost is that the address now depends on the filing: move a post to another category and its URL changes, and when a post has several categories, the documentation says the one shown is "determined alphabetically."
For most blogs, the post name alone is the safer structure. A category in the URL adds context, but it ties the address to a decision you may want to revise. If an established site already uses one, leave it: Ahrefs warns that changing the permalink structure "can lead to broken pages," and every old URL then needs a redirect.
Categories and tags on a headless site
On a headless site, the CMS stores the terms and the front end decides what they become. An archive exists only if the front end builds a route for it, and its title, introduction and noindex setting live in front-end code, not an SEO plugin. The rules above still apply.
How Structura handles this
Each Structura campaign has a Taxonomy setting with separate controls for categories and tags. Autonomous lets Structura choose, Restricted limits it to terms you pick from your site, and Disabled assigns nothing, so you file posts yourself.
In Autonomous mode, Structura reads your existing categories and tags, with their post counts, before each post and reuses them first: one category per post, two at most, and three to five tags, with existing names spelled exactly. It creates a term only when nothing fits, and never a reworded variant of one you already have. On a site with no categories yet, it starts one broad category that many future posts can share. The WordPress plugin adds a check of its own: a proposed category that differs from an existing one only in capitals, spaces, hyphens or accents goes into the existing category instead of becoming a new one.
On headless sites, the Content API's terms endpoint returns your categories and tags with their post counts, per language, and posts can be filtered by either, so your front end can build the archives and decide which to index. This site's own blog runs on that API and keeps category and tag archives with fewer than three posts, and Uncategorized, out of the index.
Structura does not merge or delete terms you already have, write archive introductions, or set noindex on archives; on WordPress that stays with you and your SEO plugin. The blog SEO software page shows what else each post arrives with.
FAQ
What is the difference between categories and tags in WordPress?
Categories are required, hierarchical and broad: every post is filed under at least one, and a blog usually keeps a short list of them. Tags are optional, flat and specific: they label details that cut across categories and link the posts that share them. Both create archive pages, but category archives are the ones worth building into hub pages, while most tag archives are better kept out of search.
How do I add categories to pages in WordPress?
Out of the box, WordPress applies categories and tags to posts only; pages are organized by giving them a parent page instead, which also nests their URLs. To file pages under categories, use a plugin that enables the category taxonomy for pages, or register it for pages in a small site plugin.
Should I noindex tag pages in WordPress?
Usually, unless a tag archive is a page you would be glad to see ranking: one with many posts on a real subject, ideally with an introduction. Ahrefs recommends keeping tag archives out of the index, and SEO plugins such as Yoast SEO have a setting for it. A noindexed archive still works for visitors who click a tag; it simply stays out of search results.